]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86: Only call smp_processor_id in non-preempt cases
authorDon Zickus <dzickus@redhat.com>
Wed, 5 Jan 2011 03:38:07 +0000 (22:38 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Jan 2011 13:22:57 +0000 (14:22 +0100)
commit9ab181fa9ff73a38fccd0a4f1c40a38dfe62b535
tree085c11333531b196be9eb8d5e088b169abe82067
parentaef1b9cef78ae65c6501850851cc3f61f9be477b
x86: Only call smp_processor_id in non-preempt cases

There are some paths that walk the die_chain with preemption on.
Make sure we are in an NMI call before we start doing anything.

This was triggered by do_general_protection calling notify_die
with DIE_GPF.

Reported-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Don Zickus <dzickus@redhat.com>
LKML-Reference: <1294198689-15447-1-git-send-email-dzickus@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/hw_nmi.c