]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC]: Small smp cleanup.
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Fri, 25 Aug 2006 23:22:21 +0000 (16:22 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 27 Aug 2006 00:52:56 +0000 (17:52 -0700)
It moves the smp_procesors_ready variable to sun4d_smp.c only.

Signed-off-by: Krzysztof Helt (krzysztof.h1@wp.pl)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/smp.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c

index e311ade1b490adad0b3188f694ca96d345e82ac6..276f22881d0fd764cd3922037eed8f962138d646 100644 (file)
@@ -34,7 +34,6 @@
 #include <asm/tlbflush.h>
 #include <asm/cpudata.h>
 
-volatile int smp_processors_ready = 0;
 int smp_num_cpus = 1;
 volatile unsigned long cpu_callin_map[NR_CPUS] __initdata = {0,};
 unsigned char boot_cpu_id = 0;
index ba843f6a28325eeb0189b05af903ac453c5d2631..3ff4edd32815ca842c5ccd03d4e6909d094f938c 100644 (file)
@@ -42,7 +42,7 @@ extern ctxd_t *srmmu_ctx_table_phys;
 
 extern void calibrate_delay(void);
 
-extern volatile int smp_processors_ready;
+static volatile int smp_processors_ready = 0;
 static int smp_highest_cpu;
 extern volatile unsigned long cpu_callin_map[NR_CPUS];
 extern cpuinfo_sparc cpu_data[NR_CPUS];
index 3b32096134aa20067c10dc9b404933f696b1a618..7d4a649138f6bdd07f0e0a9a745bab156c505b1f 100644 (file)
@@ -39,7 +39,6 @@ extern ctxd_t *srmmu_ctx_table_phys;
 
 extern void calibrate_delay(void);
 
-extern volatile int smp_processors_ready;
 extern volatile unsigned long cpu_callin_map[NR_CPUS];
 extern unsigned char boot_cpu_id;
 
@@ -217,7 +216,6 @@ void __init smp4m_smp_done(void)
        }
 
        /* Ok, they are spinning and ready to go. */
-       smp_processors_ready = 1;
 }
 
 /* At each hardware IRQ, we get this called to forward IRQ reception