x86_32: apic/es7000_32, fix cpu_mask_to_apicid
authorJiri Slaby <jirislaby@gmail.com>
Mon, 2 Mar 2009 09:53:57 +0000 (10:53 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 2 Mar 2009 10:20:33 +0000 (11:20 +0100)
commit0edc0b324a37c4bf9e13f3194f2f45c677808792
tree46dc183fd2cb4de30adb824c8a76723c62746636
parentc2b20cbd057b97e2f440fa3bc90b3df51de324fe
x86_32: apic/es7000_32, fix cpu_mask_to_apicid

Perform same-cluster checking even for masks with all (nr_cpu_ids)
bits set and report BAD_APICID on failure.

While at it, convert it to for_each_cpu.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/es7000_32.c