diff mbox

sh: fix build with FPU disabled

Message ID 20091203122041.9836.36225.sendpatchset@rxone.opensource.se (mailing list archive)
State Not Applicable
Headers show

Commit Message

Magnus Damm Dec. 3, 2009, 12:20 p.m. UTC
None
diff mbox

Patch

--- 0001/arch/sh/kernel/process_32.c
+++ work/arch/sh/kernel/process_32.c	2009-12-03 15:03:27.000000000 +0900
@@ -290,9 +290,9 @@  static void ubc_set_tracing(int asid, un
 __notrace_funcgraph struct task_struct *
 __switch_to(struct task_struct *prev, struct task_struct *next)
 {
+#if defined(CONFIG_SH_FPU)
 	struct thread_struct *next_t = &next->thread;
 
-#if defined(CONFIG_SH_FPU)
 	unlazy_fpu(prev, task_pt_regs(prev));
 
 	/* we're going to use this soon, after a few expensive things */