X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fkernel%2Fcpu.c;fp=kernel%2Fkernel%2Fcpu.c;h=0be18c1684d83d63a4a44862c02a15129f54796f;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=8edd3c7160924497f4e317e01f1c74710a3ea86b;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/kernel/cpu.c b/kernel/kernel/cpu.c index 8edd3c716..0be18c168 100644 --- a/kernel/kernel/cpu.c +++ b/kernel/kernel/cpu.c @@ -506,12 +506,6 @@ static int cpu_notify(unsigned long val, void *v) return __cpu_notify(val, v, -1, NULL); } -#ifdef CONFIG_HOTPLUG_CPU - -static void cpu_notify_nofail(unsigned long val, void *v) -{ - BUG_ON(cpu_notify(val, v)); -} EXPORT_SYMBOL(register_cpu_notifier); EXPORT_SYMBOL(__register_cpu_notifier); @@ -529,6 +523,12 @@ void __unregister_cpu_notifier(struct notifier_block *nb) } EXPORT_SYMBOL(__unregister_cpu_notifier); +#ifdef CONFIG_HOTPLUG_CPU +static void cpu_notify_nofail(unsigned long val, void *v) +{ + BUG_ON(cpu_notify(val, v)); +} + /** * clear_tasks_mm_cpumask - Safely clear tasks' mm_cpumask for a CPU * @cpu: a CPU id