Subject: externalize a function and a map of cpumasks, both needed by upcomming cpufreq driver Signed-off-by: Christian Krafft Index: linux-cg/arch/powerpc/kernel/prom.c =================================================================== --- linux-cg.orig/arch/powerpc/kernel/prom.c 2006-07-18 18:16:51.000000000 +0200 +++ linux-cg/arch/powerpc/kernel/prom.c 2006-07-18 18:17:34.000000000 +0200 @@ -1687,7 +1687,7 @@ } } return NULL; -} +} EXPORT_SYMBOL(of_get_cpu_node); #ifdef DEBUG static struct debugfs_blob_wrapper flat_dt_blob; Index: linux-cg/include/asm-powerpc/prom.h =================================================================== --- linux-cg.orig/include/asm-powerpc/prom.h 2006-07-18 18:16:51.000000000 +0200 +++ linux-cg/include/asm-powerpc/prom.h 2006-07-18 18:17:34.000000000 +0200 @@ -240,7 +240,7 @@ extern void kdump_move_device_tree(void); /* CPU OF node matching */ -struct device_node *of_get_cpu_node(int cpu, unsigned int *thread); +extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread); /* Index: linux-cg/arch/powerpc/kernel/smp.c =================================================================== --- linux-cg.orig/arch/powerpc/kernel/smp.c 2006-07-18 18:16:51.000000000 +0200 +++ linux-cg/arch/powerpc/kernel/smp.c 2006-07-18 18:17:34.000000000 +0200 @@ -65,6 +65,7 @@ EXPORT_SYMBOL(cpu_online_map); EXPORT_SYMBOL(cpu_possible_map); +EXPORT_SYMBOL(cpu_sibling_map); /* SMP operations for this machine */ struct smp_ops_t *smp_ops;