X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=include%2Flinux%2Fcpu.h;h=21b1e9789a80ccf5c17e747b86ad820e4b0209ce;hp=9c3e071900c0ab67a31814d94061b7ab8222729f;hb=2bdea84253130dc22c3e3d7a7e9013d02d21d108;hpb=1b3b08bec4f7bdf1c8b3a822439b070862179415 diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 9c3e071900c0..21b1e9789a80 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -112,22 +112,16 @@ enum { { .notifier_call = fn, .priority = pri }; \ register_cpu_notifier(&fn##_nb); \ } -#else /* #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE) */ -#define cpu_notifier(fn, pri) do { (void)(fn); } while (0) -#endif /* #else #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE) */ -#ifdef CONFIG_HOTPLUG_CPU extern int register_cpu_notifier(struct notifier_block *nb); extern void unregister_cpu_notifier(struct notifier_block *nb); -#else -#ifndef MODULE -extern int register_cpu_notifier(struct notifier_block *nb); -#else +#else /* #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE) */ +#define cpu_notifier(fn, pri) do { (void)(fn); } while (0) + static inline int register_cpu_notifier(struct notifier_block *nb) { return 0; } -#endif static inline void unregister_cpu_notifier(struct notifier_block *nb) {