diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-28 17:08:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 21:19:08 -0400 |
commit | b7afdb7e85d97294efa24fbfef7b1fa196ca808c (patch) | |
tree | 2e7e8c1ceb01e11cb5c5150c6b2f69b4eb66a6eb /arch/sparc/include/asm | |
parent | e046b1e978f82e29da7670d6d680567e30dec69a (diff) |
sparc32: add irq + smp declarations to headers
In preparation for cleaning up a number of files add
declarations for irq and smp related data/functions to
the relevant headers.
This showed that the extern declaration of cputypval differed
in the two files where it was used.
As cputypval is defined like this:
cputypval:
.asciz "sun4c"
the correct representation is a char array.
Fix users to use the new declaration.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/mmu_32.h | 3 | ||||
-rw-r--r-- | arch/sparc/include/asm/smp_32.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/mmu_32.h b/arch/sparc/include/asm/mmu_32.h index ccd36d26615a..6f056e535cf8 100644 --- a/arch/sparc/include/asm/mmu_32.h +++ b/arch/sparc/include/asm/mmu_32.h | |||
@@ -4,4 +4,7 @@ | |||
4 | /* Default "unsigned long" context */ | 4 | /* Default "unsigned long" context */ |
5 | typedef unsigned long mm_context_t; | 5 | typedef unsigned long mm_context_t; |
6 | 6 | ||
7 | /* mm/srmmu.c */ | ||
8 | extern ctxd_t *srmmu_ctx_table_phys; | ||
9 | |||
7 | #endif | 10 | #endif |
diff --git a/arch/sparc/include/asm/smp_32.h b/arch/sparc/include/asm/smp_32.h index 841905c10215..d82d7f4c0a79 100644 --- a/arch/sparc/include/asm/smp_32.h +++ b/arch/sparc/include/asm/smp_32.h | |||
@@ -29,10 +29,16 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | extern unsigned char boot_cpu_id; | 31 | extern unsigned char boot_cpu_id; |
32 | extern volatile unsigned long cpu_callin_map[NR_CPUS]; | ||
33 | extern cpumask_t smp_commenced_mask; | ||
34 | extern struct linux_prom_registers smp_penguin_ctable; | ||
32 | 35 | ||
33 | typedef void (*smpfunc_t)(unsigned long, unsigned long, unsigned long, | 36 | typedef void (*smpfunc_t)(unsigned long, unsigned long, unsigned long, |
34 | unsigned long, unsigned long); | 37 | unsigned long, unsigned long); |
35 | 38 | ||
39 | void cpu_panic(void); | ||
40 | extern void smp4m_irq_rotate(int cpu); | ||
41 | |||
36 | /* | 42 | /* |
37 | * General functions that each host system must provide. | 43 | * General functions that each host system must provide. |
38 | */ | 44 | */ |