]> git.baikalelectronics.ru Git - kernel.git/commit
hotplug / x86: Fix online state in cpu0 debug interface
authorToshi Kani <toshi.kani@hp.com>
Fri, 30 Aug 2013 00:22:06 +0000 (18:22 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Sep 2013 08:38:09 +0000 (10:38 +0200)
commitfe74f6627f715e94d57ad055ab3b87f90cd4d9cf
tree2f184030b3c2ea5949da5f622a5a81933e4cd8d2
parent1d1d72c43a6012ec577024270053d83c033df9d9
hotplug / x86: Fix online state in cpu0 debug interface

_debug_hotplug_cpu() is a debug interface that puts cpu0 offline during
boot-up when CONFIG_DEBUG_HOTPLUG_CPU0 is set.  After cpu0 is put offline
in this interface, however, /sys/devices/system/cpu/cpu0/online still
shows 1 (online).

This patch fixes _debug_hotplug_cpu() to update dev->offline when CPU
online/offline operation succeeded.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/topology.c