]> Git Repo - linux.git/commit
workqueue: introduce cpu_singlethread_map
authorOleg Nesterov <[email protected]>
Wed, 9 May 2007 09:34:12 +0000 (02:34 -0700)
committerLinus Torvalds <[email protected]>
Wed, 9 May 2007 19:30:52 +0000 (12:30 -0700)
commitb1f4ec172f75bc2f5cc4f4be69b5587660a955d2
tree41a96f3996246d1f8667b9b84705a800f03d7c49
parentdfb4b82e1c631b1a6057e77212996a890aa515b7
workqueue: introduce cpu_singlethread_map

The code like

if (is_single_threaded(wq))
do_something(singlethread_cpu);
else {
for_each_cpu_mask(cpu, cpu_populated_map)
do_something(cpu);
}

looks very annoying. We can add "static cpumask_t cpu_singlethread_map" and
simplify the code. Lessens .text a bit, and imho makes the code more readable.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/workqueue.c
This page took 0.043812 seconds and 4 git commands to generate.