summaryrefslogtreecommitdiff
path: root/lib/map
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-12-05 01:43:19 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-12-05 01:43:19 +0100
commitd15aca0532d83216e9db9c4107eabaf1fdf21925 (patch)
tree393df6be39912032dcaa6826b4588296d141526b /lib/map
parent79bfff6437def01409c373f3e053d092d84ad20e (diff)
downloadplan9front-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/map')
0 files changed, 0 insertions, 0 deletions