diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-01-16 00:22:39 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-01-22 17:10:56 +0300 |
commit | 30b8b0066cafef274fc92462578ee346211ce7cb (patch) | |
tree | 62d479f3d0c710ba2500522b86a295f579d86a55 /include/linux/smp.h | |
parent | e714a91f92ca59f7e71e7332b8ec2aa2944f629e (diff) | |
download | linux-30b8b0066cafef274fc92462578ee346211ce7cb.tar.xz |
init: Get rid of x86isms
The UP local API support can be set up from an early initcall. No need
for horrible hackery in the init code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/20150115211703.827943883@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/smp.h')
-rw-r--r-- | include/linux/smp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/smp.h b/include/linux/smp.h index 93dff5fff524..be91db2a7017 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -151,6 +151,13 @@ smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, static inline void kick_all_cpus_sync(void) { } static inline void wake_up_all_idle_cpus(void) { } +#ifdef CONFIG_UP_LATE_INIT +extern void __init up_late_init(void); +static inline void smp_init(void) { up_late_init(); } +#else +static inline void smp_init(void) { } +#endif + #endif /* !SMP */ /* |