From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:12 +0000 (-0700) Subject: workqueue: introduce cpu_singlethread_map X-Git-Tag: v2.6.22-rc1~227 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1f4ec172f75bc2f5cc4f4be69b5587660a955d2;p=pandora-kernel.git 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 Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed