[PATCH] ppc64 dont use state == SYSTEM_BOOTING
Anton Blanchard
anton at samba.org
Fri Sep 17 04:06:10 EST 2004
From: Nathan Lynch <nathanl at austin.ibm.com>
Fedora has a patch which introduces a new system state during boot.
Change system_state == SYSTEM_BOOTING to system_state < SYSTEM_RUNNING
to match it.
Signed-off-by: Anton Blanchard <anton at samba.org>
===== arch/ppc64/kernel/smp.c 1.91 vs edited =====
--- 1.91/arch/ppc64/kernel/smp.c Tue Sep 14 10:23:14 2004
+++ edited/arch/ppc64/kernel/smp.c Fri Sep 17 02:55:45 2004
@@ -379,7 +379,7 @@
/* At boot time the cpus are already spinning in hold
* loops, so nothing to do. */
- if (system_state == SYSTEM_BOOTING)
+ if (system_state < SYSTEM_RUNNING)
return 1;
pcpu = find_physical_cpu_to_start(get_hard_smp_processor_id(lcpu));
@@ -817,7 +817,7 @@
int c;
/* At boot, don't bother with non-present cpus -JSCHOPP */
- if (system_state == SYSTEM_BOOTING && !cpu_present(cpu))
+ if (system_state < SYSTEM_RUNNING && !cpu_present(cpu))
return -ENOENT;
paca[cpu].default_decr = tb_ticks_per_jiffy / decr_overclock;
@@ -849,7 +849,7 @@
* use this value that I found through experimentation.
* -- Cort
*/
- if (system_state == SYSTEM_BOOTING)
+ if (system_state < SYSTEM_RUNNING)
for (c = 5000; c && !cpu_callin_map[cpu]; c--)
udelay(100);
#ifdef CONFIG_HOTPLUG_CPU
More information about the Linuxppc64-dev
mailing list