summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/bugs.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-25 02:19:56 +0100
committerPaul Mundt <lethal@linux-sh.org>2007-02-13 02:54:45 +0100
commit11c1965687b0a472add948d4240dfe65a2fcb298 (patch)
tree69a71a34591bbdc6339dbe72de36819479f96198 /include/asm-sh/bugs.h
parentsh: Use a per-cpu ASID cache. (diff)
downloadlinux-11c1965687b0a472add948d4240dfe65a2fcb298.tar.xz
linux-11c1965687b0a472add948d4240dfe65a2fcb298.zip
sh: Fixup cpu_data references for the non-boot CPUs.
There are a lot of bogus cpu_data-> references that only end up working for the boot CPU, convert these to current_cpu_data to fixup SMP. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/bugs.h')
-rw-r--r--include/asm-sh/bugs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-sh/bugs.h b/include/asm-sh/bugs.h
index a294997a8412..5a117ec43c77 100644
--- a/include/asm-sh/bugs.h
+++ b/include/asm-sh/bugs.h
@@ -19,9 +19,9 @@ static void __init check_bugs(void)
extern unsigned long loops_per_jiffy;
char *p = &init_utsname()->machine[2]; /* "sh" */
- cpu_data->loops_per_jiffy = loops_per_jiffy;
+ current_cpu_data.loops_per_jiffy = loops_per_jiffy;
- switch (cpu_data->type) {
+ switch (current_cpu_data.type) {
case CPU_SH7604 ... CPU_SH7619:
*p++ = '2';
break;
@@ -54,7 +54,7 @@ static void __init check_bugs(void)
break;
}
- printk("CPU: %s\n", get_cpu_subtype());
+ printk("CPU: %s\n", get_cpu_subtype(&current_cpu_data));
#ifndef __LITTLE_ENDIAN__
/* 'eb' means 'Endian Big' */