Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113110
b: refs/heads/master
c: 7b1af32
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 8, 2008
1 parent 6587705 commit 3a950a8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 365b50f0f09c1a24f1a60e0c027f300ed423c192
refs/heads/master: 7b1af32f52077402157f8bb8fc22d8da17606095
11 changes: 0 additions & 11 deletions trunk/arch/sparc/include/asm/obio.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,6 @@ static inline void bw_set_ctrl(int cpu, unsigned ctrl)
"i" (ASI_M_CTL));
}

extern unsigned char cpu_leds[32];

static inline void show_leds(int cpuid)
{
cpuid &= 0x1e;
__asm__ __volatile__ ("stba %0, [%1] %2" : :
"r" ((cpu_leds[cpuid] << 4) | cpu_leds[cpuid+1]),
"r" (ECSR_BASE(cpuid) | BB_LEDS),
"i" (ASI_M_CTL));
}

static inline unsigned cc_get_ipen(void)
{
unsigned pending;
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sparc/kernel/sun4d_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ struct sun4d_timer_regs *sun4d_timers;
#define MAX_STATIC_ALLOC 4
extern struct irqaction static_irqaction[MAX_STATIC_ALLOC];
extern int static_irq_count;
unsigned char cpu_leds[32];
#ifdef CONFIG_SMP
static unsigned char sbus_tid[32];
#endif
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/sparc/kernel/sun4d_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ static void smp_setup_percpu_timer(void);
extern void cpu_probe(void);
extern void sun4d_distribute_irqs(void);

static unsigned char cpu_leds[32];

static inline void show_leds(int cpuid)
{
cpuid &= 0x1e;
__asm__ __volatile__ ("stba %0, [%1] %2" : :
"r" ((cpu_leds[cpuid] << 4) | cpu_leds[cpuid+1]),
"r" (ECSR_BASE(cpuid) | BB_LEDS),
"i" (ASI_M_CTL));
}

void __init smp4d_callin(void)
{
int cpuid = hard_smp4d_processor_id();
Expand Down

0 comments on commit 3a950a8

Please sign in to comment.