summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorZhao Chenhui <chenhui.zhao@freescale.com>2013-05-09 05:48:54 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-05-13 22:26:53 (GMT)
commit061b810224f7f3c74619b50eb8ef91c33529fcfb (patch)
tree2c8f2b0bb6a5f19e8688f9d09e5304b1e426e1c8 /arch/powerpc
parenta0abc77826c9af394baf35c1b7d636aacc2077f8 (diff)
downloadlinux-fsl-qoriq-061b810224f7f3c74619b50eb8ef91c33529fcfb.tar.xz
powerpc/sysfs: disable hotplug for the boot cpu
Some features depend on the boot cpu, for instance, hibernate/suspend. So disable hotplug for the boot cpu. Change-Id: I1e582c4b3d7d243e9fb04dab3174da21a2e25b94 Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2457 Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index 3ce1f86..0591d2a6 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -655,8 +655,10 @@ static int __init topology_init(void)
* CPU. For instance, the boot cpu might never be valid
* for hotplugging.
*/
- if (ppc_md.cpu_die)
+ if (ppc_md.cpu_die && cpu != boot_cpuid)
c->hotpluggable = 1;
+ else
+ c->hotpluggable = 0;
if (cpu_online(cpu) || c->hotpluggable) {
register_cpu(c, cpu);