]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: Remove cpumask games in x86/kernel/cpu/intel_cacheinfo.c
authorMike Travis <travis@sgi.com>
Wed, 17 Dec 2008 01:34:03 +0000 (17:34 -0800)
committerMike Travis <travis@sgi.com>
Wed, 17 Dec 2008 01:40:58 +0000 (17:40 -0800)
commitb2bb85549134c005e997e5a7ed303bda6a1ae738
tree292f05bfeb474cb4bf32d8e55c5166750edb13ca
parent1de88cd4a33fcc2fcf70cbce01688723f728675d
x86: Remove cpumask games in x86/kernel/cpu/intel_cacheinfo.c

Impact: remove cpumask_t from stack.

We should not try to save and restore cpus_allowed on current.

We can't use work_on_cpu() here, since it's in the hotplug cpu path
(if anyone else tries to get the hotplug lock from a workqueue we
could deadlock against them).

Fortunately, we can just use smp_call_function_single() since the
function can run from an interrupt.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
arch/x86/kernel/cpu/intel_cacheinfo.c