summaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov2015-08-05 09:52:47 +0200
committerGreg Kroah-Hartman2015-08-05 20:46:44 +0200
commit32145c4677d2c46b9d877a33ae82c6fcacd002f9 (patch)
tree39f0505dc1d6976064e1b7bb0292509a2c1c7db2 /kernel/cpu.c
parentcpu-hotplug: convert cpu_hotplug_disabled to a counter (diff)
downloadkernel-qcow2-linux-32145c4677d2c46b9d877a33ae82c6fcacd002f9.tar.gz
kernel-qcow2-linux-32145c4677d2c46b9d877a33ae82c6fcacd002f9.tar.xz
kernel-qcow2-linux-32145c4677d2c46b9d877a33ae82c6fcacd002f9.zip
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 <vkuznets@redhat.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 0fca2ba96138..718ea76b78ba 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -194,6 +194,7 @@ void cpu_hotplug_disable(void)
cpu_hotplug_disabled++;
cpu_maps_update_done();
}
+EXPORT_SYMBOL_GPL(cpu_hotplug_disable);
void cpu_hotplug_enable(void)
{
@@ -201,7 +202,7 @@ void cpu_hotplug_enable(void)
WARN_ON(--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? */