From: Paul Mundt Date: Wed, 14 Oct 2009 05:14:30 +0000 (+0900) Subject: sh: Populate initial secondary CPU info from boot_cpu_data. X-Git-Tag: v2.6.32-rc5~20^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a66c2edea56c291a6f6a52f07496ebb97c0880e8;p=platform%2Fkernel%2Flinux-3.10.git sh: Populate initial secondary CPU info from boot_cpu_data. The secondary CPU info was seeing corrupted results due to not entering all of the setup paths taken by the boot CPU. So we just memcpy() the boot cpu data over directly, and then fix up the per-CPU bits. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 442d8d4..160db100 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -35,6 +35,8 @@ static inline void __init smp_store_cpu_info(unsigned int cpu) { struct sh_cpuinfo *c = cpu_data + cpu; + memcpy(c, &boot_cpu_data, sizeof(struct sh_cpuinfo)); + c->loops_per_jiffy = loops_per_jiffy; }