aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorGravatar Oleg Nesterov <oleg@tv-sign.ru> 2007-05-09 02:34:12 -0700
committerGravatar Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-05-09 12:30:52 -0700
commitb1f4ec172f75bc2f5cc4f4be69b5587660a955d2 (patch)
tree41a96f3996246d1f8667b9b84705a800f03d7c49 /crypto
parentworkqueue: make cancel_rearming_delayed_workqueue() work on idle dwork (diff)
downloadlinux-b1f4ec172f75bc2f5cc4f4be69b5587660a955d2.tar.gz
linux-b1f4ec172f75bc2f5cc4f4be69b5587660a955d2.tar.bz2
linux-b1f4ec172f75bc2f5cc4f4be69b5587660a955d2.zip
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 <oleg@tv-sign.ru> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions