summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/process.c
diff options
context:
space:
mode:
authorPaul Mundt2007-09-28 09:04:49 +0200
committerPaul Mundt2007-09-28 09:04:49 +0200
commit836624619b98535079053920a29a7e474ac17cbc (patch)
treebeb3b4fc1b893b6a422be3645c3611b1c7adb456 /arch/sh/kernel/process.c
parentsh: Follow gUSA preempt changes in __switch_to(). (diff)
downloadkernel-qcow2-linux-836624619b98535079053920a29a7e474ac17cbc.tar.gz
kernel-qcow2-linux-836624619b98535079053920a29a7e474ac17cbc.tar.xz
kernel-qcow2-linux-836624619b98535079053920a29a7e474ac17cbc.zip
sh: Conditionalize gUSA support.
This conditionalizes gUSA support. gUSA is not supported on SMP configurations, and it's not necessary there anyways due to having other atomicity options (ie, movli.l/movco.l). Anything implementing the LL/SC semantics (all SH-4A CPUs) can switch to userspace atomicity implementations without requiring gUSA. This is left default-enabled on all UP so that glibc doesn't break. Those that know what they are doing can disable this explicitly. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/process.c')
-rw-r--r--arch/sh/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c
index cd8dae16e940..b4469992d6b2 100644
--- a/arch/sh/kernel/process.c
+++ b/arch/sh/kernel/process.c
@@ -350,7 +350,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
unlazy_fpu(prev, task_pt_regs(prev));
#endif
-#ifdef CONFIG_PREEMPT
+#if defined(CONFIG_GUSA) && defined(CONFIG_PREEMPT)
{
struct pt_regs *regs;