summaryrefslogtreecommitdiff
path: root/arch/arc/kernel/process.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-11-16 11:22:07 +0300
committerVineet Gupta <vgupta@synopsys.com>2015-11-16 11:47:02 +0300
commit512b5b89b9ef90e7a6475513fa9402e55b0e831c (patch)
tree66e6552251a93ebc7a2dca7e48aa873dd9bda259 /arch/arc/kernel/process.c
parent61a163481845ec917914d33bdd60b531dacfcf07 (diff)
downloadlinux-512b5b89b9ef90e7a6475513fa9402e55b0e831c.tar.xz
ARC: Abstract out ISA specific SLEEP args
No semantical changes, prepares for ARCv2 specific change in next commit Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/process.c')
-rw-r--r--arch/arc/kernel/process.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
index 91d5a0f1f3f7..a3f750e76b68 100644
--- a/arch/arc/kernel/process.c
+++ b/arch/arc/kernel/process.c
@@ -44,11 +44,10 @@ SYSCALL_DEFINE0(arc_gettls)
void arch_cpu_idle(void)
{
/* sleep, but enable all interrupts before committing */
- if (is_isa_arcompact()) {
- __asm__("sleep 0x3");
- } else {
- __asm__("sleep 0x10");
- }
+ __asm__ __volatile__(
+ "sleep %0 \n"
+ :
+ :"I"(ISA_SLEEP_ARG)); /* can't be "r" has to be embedded const */
}
asmlinkage void ret_from_fork(void);