Skip to content

Commit c881cbc

Browse files
committed
sh: Don't reference UBC code in CPU init on sh64.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent cc8eae7 commit c881cbc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎arch/sh/kernel/cpu/init.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
#include <asm/cacheflush.h>
2222
#include <asm/cache.h>
2323
#include <asm/io.h>
24-
#include <asm/ubc.h>
2524
#include <asm/smp.h>
25+
#ifdef CONFIG_SUPERH32
26+
#include <asm/ubc.h>
27+
#endif
2628

2729
/*
2830
* Generic wrapper for command line arguments to disable on-chip
@@ -273,7 +275,10 @@ asmlinkage void __cpuinit sh_cpu_init(void)
273275
* like PTRACE_SINGLESTEP or doing hardware watchpoints in GDB. So ..
274276
* we wake it up and hope that all is well.
275277
*/
278+
#ifdef CONFIG_SUPERH32
276279
if (raw_smp_processor_id() == 0)
277280
ubc_wakeup();
281+
#endif
282+
278283
speculative_execution_init();
279284
}

0 commit comments

Comments
 (0)