irq, cpumask: correct CPUMASKS_OFFSTACK typo and fix fallout
authorYinghai Lu <yinghai@kernel.org>
Tue, 28 Apr 2009 00:57:18 +0000 (17:57 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 28 Apr 2009 10:21:14 +0000 (12:21 +0200)
commit9ec4fa271faf2db3b8e1419c998da1ca6b094eb6
tree2dd817bd41526fc1d1252e50b0b1a0714ae34a7f
parente25c2c873f59c57cf1c2b1979cc8fb01958305ef
irq, cpumask: correct CPUMASKS_OFFSTACK typo and fix fallout

CPUMASKS_OFFSTACK is not defined anywhere (it is CPUMASK_OFFSTACK).
It is a typo and init_allocate_desc_masks() is called before it set
affinity to all cpus...

Split init_alloc_desc_masks() into all_desc_masks() and init_desc_masks().

Also use CPUMASK_OFFSTACK in alloc_desc_masks().

[ Impact: fix smp_affinity copying/setup when moving irq_desc between CPUs ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
LKML-Reference: <49F6546E.3040406@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/irq.h
kernel/irq/handle.c
kernel/irq/numa_migrate.c