[RFC PATCH] ARM: Export the CPU logical map to modules
dave.martin at linaro.org
Mon Jan 28 12:34:04 EST 2013
It is reasonable for loadable modules to be CPU topology aware
(particular examples include cpufreq and cpuidle drivers).
This patch exports __cpu_logical_map, so that modules can use the
cpu_logical_map() interface declared in <asm/smp_plat.h>.
Signed-off-by: Dave Martin <dave.martin at linaro.org>
If anyone has a strong view on whether this should be
EXPORT_SYMBOL_GPL(), I don't have a problem with changing
that. I'm not sure of the precise etiquette here.
Certainly this does not feel like a very "public" interface.
Perhaps we should wrap this in a real function for export
to modules, rather than encouraging them to poke the
__cpu_logical_map array (albeit via a predefined macro).
arch/arm/kernel/setup.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 3f6cbb2..1b9e5bf 100644
@@ -428,6 +428,7 @@ void cpu_init(void)
void __init smp_setup_processor_id(void)
More information about the linux-arm-kernel