diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-09-28 16:04:49 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-28 16:04:49 +0900 |
commit | 836624619b98535079053920a29a7e474ac17cbc (patch) | |
tree | beb3b4fc1b893b6a422be3645c3611b1c7adb456 /arch/sh/kernel/signal.c | |
parent | 995bb781d42441ed48517bc7ea6414c3df3386ef (diff) | |
download | op-kernel-dev-836624619b98535079053920a29a7e474ac17cbc.zip op-kernel-dev-836624619b98535079053920a29a7e474ac17cbc.tar.gz |
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/signal.c')
-rw-r--r-- | arch/sh/kernel/signal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/signal.c b/arch/sh/kernel/signal.c index 0f657d3..2f42442 100644 --- a/arch/sh/kernel/signal.c +++ b/arch/sh/kernel/signal.c @@ -507,6 +507,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, ctrl_inw(regs->pc - 4)); break; } +#ifdef CONFIG_GUSA } else { /* gUSA handling */ preempt_disable(); @@ -523,6 +524,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info, } preempt_enable_no_resched(); +#endif } /* Set up the stack frame */ |