diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-10-17 12:04:37 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-17 14:16:15 -0400 |
commit | fb7ae26df0b1218b39049b659064d57b58616c94 (patch) | |
tree | 6e151ec0a9aee084327e7cbb0b87d041eb7d6963 /arch/x86/mach-es7000/es7000plat.c | |
parent | c8f2518e390638abc8255616a40b4a28caa66a95 (diff) |
i386: es7000 minor cleanups
This patch contains the following cleanups:
- make some needlessly global functions static
- #if 0 the unused es7000_stop_cpu()
AK: actually removed es7000_stop_cpu
AK: fixed a non ISO prototype too
[ tglx: arch/x86 adaptation ]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mach-es7000/es7000plat.c')
-rw-r--r-- | arch/x86/mach-es7000/es7000plat.c | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/arch/x86/mach-es7000/es7000plat.c b/arch/x86/mach-es7000/es7000plat.c index ab99072d3f9a..f5d6f7d8b86e 100644 --- a/arch/x86/mach-es7000/es7000plat.c +++ b/arch/x86/mach-es7000/es7000plat.c | |||
@@ -46,11 +46,11 @@ | |||
46 | * ES7000 Globals | 46 | * ES7000 Globals |
47 | */ | 47 | */ |
48 | 48 | ||
49 | volatile unsigned long *psai = NULL; | 49 | static volatile unsigned long *psai = NULL; |
50 | struct mip_reg *mip_reg; | 50 | static struct mip_reg *mip_reg; |
51 | struct mip_reg *host_reg; | 51 | static struct mip_reg *host_reg; |
52 | int mip_port; | 52 | static int mip_port; |
53 | unsigned long mip_addr, host_addr; | 53 | static unsigned long mip_addr, host_addr; |
54 | 54 | ||
55 | /* | 55 | /* |
56 | * GSI override for ES7000 platforms. | 56 | * GSI override for ES7000 platforms. |
@@ -288,28 +288,8 @@ es7000_start_cpu(int cpu, unsigned long eip) | |||
288 | 288 | ||
289 | } | 289 | } |
290 | 290 | ||
291 | int | ||
292 | es7000_stop_cpu(int cpu) | ||
293 | { | ||
294 | int startup; | ||
295 | |||
296 | if (psai == NULL) | ||
297 | return -1; | ||
298 | |||
299 | startup= (0x1000000 | cpu); | ||
300 | |||
301 | while ((*psai & 0xff00ffff) != startup) | ||
302 | ; | ||
303 | |||
304 | startup = (*psai & 0xff0000) >> 16; | ||
305 | *psai &= 0xffffff; | ||
306 | |||
307 | return 0; | ||
308 | |||
309 | } | ||
310 | |||
311 | void __init | 291 | void __init |
312 | es7000_sw_apic() | 292 | es7000_sw_apic(void) |
313 | { | 293 | { |
314 | if (es7000_plat) { | 294 | if (es7000_plat) { |
315 | int mip_status; | 295 | int mip_status; |