diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-05 01:43:19 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-05 01:43:19 +0100 |
| commit | d15aca0532d83216e9db9c4107eabaf1fdf21925 (patch) | |
| tree | 393df6be39912032dcaa6826b4588296d141526b /lib | |
| parent | 79bfff6437def01409c373f3e053d092d84ad20e (diff) | |
| download | plan9front-d15aca0532d83216e9db9c4107eabaf1fdf21925.tar.xz | |
kernel: fix tprof on multiprocessor
segclock() has to be called from hzclock(), otherwise
only processes running on cpu0 would catche the interrupt
and the time delta would be wrong.
lock the segment when allocating Seg->profile as
profile ctl might be issued from multiple processes.
Proc->debug qlock is not sufficient.
Seg->profile can never be freed or reallocated once
set as the timer interrupt accesses it without any
locking.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
