aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-03-21 17:49:31 -0400
committerThomas Gleixner <tglx@linutronix.de>2013-04-08 11:39:22 -0400
commit6546327ad187238ac63d2429701b32becb096fd8 (patch)
tree59665d5b3314e7e6359833ce81f5150090092260 /arch/cris/arch-v32
parent31880c37c11e28cb81c70757e38392b42e695dc6 (diff)
arch: Cleanup enable/disable_hlt
enable/disable_hlt() does not need to be exported and can be killed on architectures which do not use it at all. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Reviewed-by: Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Magnus Damm <magnus.damm@gmail.com> Link: http://lkml.kernel.org/r/20130321215233.377959540@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/kernel/process.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/cris/arch-v32/kernel/process.c b/arch/cris/arch-v32/kernel/process.c
index 2b23ef0e4452..4857933d59f4 100644
--- a/arch/cris/arch-v32/kernel/process.c
+++ b/arch/cris/arch-v32/kernel/process.c
@@ -20,16 +20,14 @@
20 20
21extern void stop_watchdog(void); 21extern void stop_watchdog(void);
22 22
23extern int cris_hlt_counter;
24
25/* We use this if we don't have any better idle routine. */ 23/* We use this if we don't have any better idle routine. */
26void default_idle(void) 24void default_idle(void)
27{ 25{
28 local_irq_disable(); 26 local_irq_disable();
29 if (!need_resched() && !cris_hlt_counter) { 27 if (!need_resched()) {
30 /* Halt until exception. */ 28 /* Halt until exception. */
31 __asm__ volatile("ei \n\t" 29 __asm__ volatile("ei \n\t"
32 "halt "); 30 "halt ");
33 } 31 }
34 local_irq_enable(); 32 local_irq_enable();
35} 33}