aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-09-21 05:01:40 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-21 05:01:40 -0400
commit2d4a73d5b91528322631830784f4eb7897fb5e41 (patch)
tree19a61cc5ed80c0c3488197aec9539b602b50c4ad /arch/sh/kernel
parent00765c816a6396e2bb3c6588019bda1508b62f6a (diff)
sh: Kill off special boot_cpu_data.
This consolidates the cpu_data definitions and gets rid of the special boot_cpu_data. It's made a wrapper to the boot CPU, in order to keep the existing in-tree users happy. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/setup.c8
-rw-r--r--arch/sh/kernel/sh_ksyms.c1
2 files changed, 7 insertions, 2 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index e0e655cba89c..cd69b57488dd 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -42,7 +42,13 @@ extern void * __rd_start, * __rd_end;
42 * This value will be used at the very early stage of serial setup. 42 * This value will be used at the very early stage of serial setup.
43 * The bigger value means no problem. 43 * The bigger value means no problem.
44 */ 44 */
45struct sh_cpuinfo boot_cpu_data = { CPU_SH_NONE, 10000000, }; 45struct sh_cpuinfo cpu_data[NR_CPUS] __read_mostly = {
46 [0] = {
47 .type = CPU_SH_NONE,
48 .loops_per_jiffy = 10000000,
49 },
50};
51EXPORT_SYMBOL(cpu_data);
46 52
47/* 53/*
48 * The machine vector. First entry in .machvec.init, or clobbered by 54 * The machine vector. First entry in .machvec.init, or clobbered by
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c
index 89362e05cc46..cac7380ed0bb 100644
--- a/arch/sh/kernel/sh_ksyms.c
+++ b/arch/sh/kernel/sh_ksyms.c
@@ -43,7 +43,6 @@ EXPORT_SYMBOL(memcpy);
43EXPORT_SYMBOL(memset); 43EXPORT_SYMBOL(memset);
44EXPORT_SYMBOL(memmove); 44EXPORT_SYMBOL(memmove);
45EXPORT_SYMBOL(__copy_user); 45EXPORT_SYMBOL(__copy_user);
46EXPORT_SYMBOL(boot_cpu_data);
47 46
48#ifdef CONFIG_MMU 47#ifdef CONFIG_MMU
49EXPORT_SYMBOL(get_vm_area); 48EXPORT_SYMBOL(get_vm_area);