From 061b810224f7f3c74619b50eb8ef91c33529fcfb Mon Sep 17 00:00:00 2001 From: Zhao Chenhui Date: Thu, 9 May 2013 13:48:54 +0800 Subject: 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 Reviewed-on: http://git.am.freescale.net:8181/2457 Reviewed-by: Wood Scott-B07421 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING 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); -- cgit v0.10.2