summaryrefslogtreecommitdiff
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorDou Liyang <douly.fnst@cn.fujitsu.com>2016-09-07 10:21:33 +0800
committerIngo Molnar <mingo@kernel.org>2016-09-08 08:11:03 +0200
commitc291b015158577be533dd5a959dfc09bab119eed (patch)
treeb91e42c318b00d6fd80dd8ade3ef026a85070654 /include/linux/acpi.h
parentdb91e2370e087967cb6b6425c092188767fb5e00 (diff)
x86/apic: Fix num_processors value in case of failure
If the topology package map check of the APIC ID and the CPU is a failure, we don't generate the processor info for that APIC ID yet we increase disabled_cpus by one - which is buggy. Only increase num_processors once we are sure we don't fail. Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com> Acked-by: David Rientjes <rientjes@google.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1473214893-16481-1-git-send-email-douly.fnst@cn.fujitsu.com [ Rewrote the changelog. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/acpi.h')
0 files changed, 0 insertions, 0 deletions