diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-02-08 02:33:55 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-13 19:50:03 -0500 |
commit | 8feaeca23ab8f520e7af2a862fd6ea8e7bfd8854 (patch) | |
tree | 249798bed7822c8b2640122ae15c485a1f29593e /arch/powerpc/platforms/pseries/pseries.h | |
parent | 577830b034bc11c93d4b9e21e8782900d5485e7f (diff) |
[POWERPC] Cleanup pseries smp initialisation code
Move some extern declarations from setup.c into the new pseries.h.
While we're at it, provide dummy implementations for !SMP, to avoid
cluttering the C file with more #ifdefs.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/pseries.h')
-rw-r--r-- | arch/powerpc/platforms/pseries/pseries.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 37618cb896cb..36c791572682 100644 --- a/arch/powerpc/platforms/pseries/pseries.h +++ b/arch/powerpc/platforms/pseries/pseries.h | |||
@@ -17,4 +17,12 @@ struct pt_regs; | |||
17 | extern int pSeries_system_reset_exception(struct pt_regs *regs); | 17 | extern int pSeries_system_reset_exception(struct pt_regs *regs); |
18 | extern int pSeries_machine_check_exception(struct pt_regs *regs); | 18 | extern int pSeries_machine_check_exception(struct pt_regs *regs); |
19 | 19 | ||
20 | #ifdef CONFIG_SMP | ||
21 | extern void smp_init_pseries_mpic(void); | ||
22 | extern void smp_init_pseries_xics(void); | ||
23 | #else | ||
24 | static inline smp_init_pseries_mpic(void) { }; | ||
25 | static inline smp_init_pseries_xics(void) { }; | ||
26 | #endif | ||
27 | |||
20 | #endif /* _PSERIES_PSERIES_H */ | 28 | #endif /* _PSERIES_PSERIES_H */ |