aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2008-04-29 01:00:27 -0700
committerLinus Torvalds <[email protected]>2008-04-29 08:06:11 -0700
commit00dfcaf748f46de89efe41baa298b5cf9adda67e (patch)
tree4420dbfac9ba213e1604320cf9615a505ca909fd /tools/perf/scripts
parent786083667e0ced85ce17c4c0b6c57a9f47c5b9f2 (diff)
workqueues: shrink cpu_populated_map when CPU dies
When cpu_populated_map was introduced, it was supposed that cwq->thread can survive after CPU_DEAD, that is why we never shrink cpu_populated_map. This is not very nice, we can safely remove the already dead CPU from the map. The only required change is that destroy_workqueue() must hold the hotplug lock until it destroys all cwq->thread's, to protect the cpu_populated_map. We could make the local copy of cpu mask and drop the lock, but sizeof(cpumask_t) may be very large. Also, fix the comment near queue_work(). Unless _cpu_down() happens we do guarantee the cpu-affinity of the work_struct, and we have users which rely on this. [[email protected]: repair comment] Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions