Skip to contentSkip to conversation

sparc32: small smp cleanup

PATCH Applied Krzysztof Helt 2 participants 2 messages Aug 12, 2006 – Aug 25, 2006 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: small smp cleanup

From: Krzysztof Helt ([email protected])

It moves the smp_procesors_ready variable to sun4d_smp.c only.

---
smp_processors_ready is not really used in sun4m_smp.c. Let the sun4d guys remove it.

I tested it on SS20 and 2.6.18-rc4 kernel.

----------------------------------------------------
Czy 10 minut rozmowy = ponad 11 zł oszczędności ?
Sprawdź: http://klik.wp.pl/?adr=http%3A%2F%2Ftelefon.wp.pl%2Foszczednosci.html&sid=842

arch/sparc/kernel/smp.c +0 -1
diff -urp linux-2.6.17/arch/sparc/kernel/smp.c linux-new/arch/sparc/kernel/smp.c
@@ -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;
arch/sparc/kernel/sun4d_smp.c +1 -1
diff -urp linux-2.6.17/arch/sparc/kernel/sun4d_smp.c linux-new/arch/sparc/kernel/sun4d_smp.c
@@ -42,7 +42,7 @@ extern ctxd_t *srmmu_ctx_table_phys;
 
 extern void calibrate_delay(void);
 
-extern volatile int smp_processors_ready;
+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];
arch/sparc/kernel/sun4m_smp.c +0 -2
diff -urp linux-2.6.17/arch/sparc/kernel/sun4m_smp.c linux-new/arch/sparc/kernel/sun4m_smp.c
@@ -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
maintainer Applied
#1 lore raw

From: "Krzysztof Helt" <[email protected]>
Date: Sat, 12 Aug 2006 15:23:48 +0200

Quoted 10 lines

From: Krzysztof Helt ([email protected])

It moves the smp_procesors_ready variable to sun4d_smp.c only.

---
smp_processors_ready is not really used in sun4m_smp.c. Let the sun4d guys remove it.

I tested it on SS20 and 2.6.18-rc4 kernel.

Applied, except I added "static" to the instance you left in sun4d_smp.c