From: Vitaly Kuznetsov Date: Wed, 5 Aug 2015 07:52:47 +0000 (-0700) Subject: cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable X-Git-Tag: v4.1.12-92~196^2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dc7880c6a8c25da65c99f3155f6854dad311c56f;p=users%2Fjedix%2Flinux-maple.git cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable Hyper-V module needs to disable cpu hotplug (offlining) as there is no support from hypervisor side to reassign already opened event channels to a different CPU. Currently it is been done by altering smp_ops.cpu_disable but it is hackish. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Thomas Gleixner Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 32145c4677d2c46b9d877a33ae82c6fcacd002f9) As hv driver depends on it Orabug: 21886720 Signed-off-by: Jason Luo --- diff --git a/kernel/cpu.c b/kernel/cpu.c index 94bbe4695232c..dc005e7036fa5 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -193,6 +193,7 @@ void cpu_hotplug_disable(void) cpu_hotplug_disabled = 1; cpu_maps_update_done(); } +EXPORT_SYMBOL_GPL(cpu_hotplug_disable); void cpu_hotplug_enable(void) { @@ -200,7 +201,7 @@ void cpu_hotplug_enable(void) cpu_hotplug_disabled = 0; cpu_maps_update_done(); } - +EXPORT_SYMBOL_GPL(cpu_hotplug_enable); #endif /* CONFIG_HOTPLUG_CPU */ /* Need to know about CPUs going up/down? */