2004-03-24 21:30:06

by Keshavamurthy, Anil S

[permalink] [raw]
Subject: Export cpu_up & cpu_down functions

Hi Rusty,
When acpi processor driver capable of handling cpu hotplug
notifications is compiled as module then this driver expects cpu_up()
and cpu_down() to be an exported functions. Attached patch exports those
functions. Please include this patch.

Thanks,
Anil Keshavamurthy

--------------------------------

linux-2.6.3-root/kernel/cpu.c | 2 ++
1 files changed, 2 insertions(+)

diff -puN kernel/cpu.c~export_cpu_up_cpu_down kernel/cpu.c
--- linux-2.6.3/kernel/cpu.c~export_cpu_up_cpu_down 2004-03-24
21:18:38.418764404 -0800
+++ linux-2.6.3-root/kernel/cpu.c 2004-03-24 21:20:04.449081889
-0800
@@ -154,6 +154,7 @@ out:
unlock_cpu_hotplug();
return err;
}
+EXPORT_SYMBOL(cpu_down);
#else
static inline int cpu_run_sbin_hotplug(unsigned int cpu, const char
*action)
{
@@ -198,3 +199,4 @@ out:
unlock_cpu_hotplug();
return ret;
}
+EXPORT_SYMBOL(cpu_up);