Skip to content

Commit

Permalink
[SPARC]: Small smp cleanup.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Helt authored and David S. Miller committed Aug 27, 2006
1 parent a23b423 commit 5fec811
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion arch/sparc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/sun4d_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/kernel/sun4m_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5fec811

Please sign in to comment.