From 39c0a83cdd60de7bd7ec9260addfeb74babbd266 Mon Sep 17 00:00:00 2001 From: Chandra Seetharaman Date: Tue, 27 Jun 2006 02:54:10 -0700 Subject: [PATCH] --- yaml --- r: 30767 b: refs/heads/master c: 39f4885c56073ecafd482d7e10dd7b17900fa312 h: refs/heads/master i: 30765: 613afeaa79319db0b7e38a7997f4cde6e27b1e85 30763: 13cb88d7f179132425624f144429475163700c53 30759: 7c714d2e3342217f16373345728af55baf95dcea 30751: 296c98be74fc01721b6e8a97f257e173bf5496da v: v3 --- [refs] | 2 +- trunk/include/linux/cpu.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e88aa10a5675..261e4196a001 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 26c2143b63b8078d08d562733716de142927e17a +refs/heads/master: 39f4885c56073ecafd482d7e10dd7b17900fa312 diff --git a/trunk/include/linux/cpu.h b/trunk/include/linux/cpu.h index cdfe471a70a1..a3caf6866bae 100644 --- a/trunk/include/linux/cpu.h +++ b/trunk/include/linux/cpu.h @@ -79,6 +79,8 @@ extern int lock_cpu_hotplug_interruptible(void); { .notifier_call = fn, .priority = pri }; \ register_cpu_notifier(&fn##_nb); \ } +#define register_hotcpu_notifier(nb) register_cpu_notifier(nb) +#define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) int cpu_down(unsigned int cpu); #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu)) #else @@ -86,6 +88,8 @@ int cpu_down(unsigned int cpu); #define unlock_cpu_hotplug() do { } while (0) #define lock_cpu_hotplug_interruptible() 0 #define hotcpu_notifier(fn, pri) +#define register_hotcpu_notifier(nb) +#define unregister_hotcpu_notifier(nb) /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ static inline int cpu_is_offline(int cpu) { return 0; }