sh: Don't reference UBC code in CPU init on sh64.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 10 Nov 2007 11:18:18 +0000 (20:18 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:43 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/init.c

index c217c4bf0085addff0e4746789d4ac3d67d4e2eb..f37f1c031631c77bf266c1398b5f23322b5f201a 100644 (file)
 #include <asm/cacheflush.h>
 #include <asm/cache.h>
 #include <asm/io.h>
-#include <asm/ubc.h>
 #include <asm/smp.h>
+#ifdef CONFIG_SUPERH32
+#include <asm/ubc.h>
+#endif
 
 /*
  * Generic wrapper for command line arguments to disable on-chip
@@ -273,7 +275,10 @@ asmlinkage void __cpuinit sh_cpu_init(void)
         * like PTRACE_SINGLESTEP or doing hardware watchpoints in GDB.  So ..
         * we wake it up and hope that all is well.
         */
+#ifdef CONFIG_SUPERH32
        if (raw_smp_processor_id() == 0)
                ubc_wakeup();
+#endif
+
        speculative_execution_init();
 }
This page took 0.02815 seconds and 5 git commands to generate.