sh: Fixup cpu_data references for the non-boot CPUs.
[pandora-kernel.git] / include / asm-sh / bugs.h
index a294997..5a117ec 100644 (file)
@@ -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' */