Commit c5fe4ed6 authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] FRV: cli/sti cleanup

This cleans up the remaining references to the cli() and sti() functions
from the FRV arch now they're deprecated. 
Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ad22c71c
...@@ -82,7 +82,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask) ...@@ -82,7 +82,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask)
int status = 0; int status = 0;
// if (!(action->flags & SA_INTERRUPT)) // if (!(action->flags & SA_INTERRUPT))
// sti(); // local_irq_enable();
do { do {
status |= action->flags; status |= action->flags;
...@@ -92,7 +92,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask) ...@@ -92,7 +92,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask)
if (status & SA_SAMPLE_RANDOM) if (status & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq); add_interrupt_randomness(irq);
cli(); local_irq_disable();
} }
} }
} }
......
...@@ -316,16 +316,16 @@ asmlinkage void do_IRQ(void) ...@@ -316,16 +316,16 @@ asmlinkage void do_IRQ(void)
do_softirq(); do_softirq();
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPT
cli(); local_irq_disable();
while (--current->preempt_count == 0) { while (--current->preempt_count == 0) {
if (!(__frame->psr & PSR_S) if (!(__frame->psr & PSR_S) ||
|| (current->need_resched == 0) current->need_resched == 0 ||
|| in_interrupt()) in_interrupt())
break; break;
current->preempt_count++; current->preempt_count++;
sti(); local_irq_enable();
preempt_schedule(); preempt_schedule();
cli(); local_irq_disable();
} }
#endif #endif
......
...@@ -36,7 +36,7 @@ extern void frv_change_cmode(int); ...@@ -36,7 +36,7 @@ extern void frv_change_cmode(int);
int pm_do_suspend(void) int pm_do_suspend(void)
{ {
cli(); local_irq_disable();
__set_LEDS(0xb1); __set_LEDS(0xb1);
...@@ -45,7 +45,7 @@ int pm_do_suspend(void) ...@@ -45,7 +45,7 @@ int pm_do_suspend(void)
__set_LEDS(0xb2); __set_LEDS(0xb2);
sti(); local_irq_enable();
return 0; return 0;
} }
...@@ -84,7 +84,7 @@ void (*__power_switch_wake_cleanup)(void) = __default_power_switch_cleanup; ...@@ -84,7 +84,7 @@ void (*__power_switch_wake_cleanup)(void) = __default_power_switch_cleanup;
int pm_do_bus_sleep(void) int pm_do_bus_sleep(void)
{ {
cli(); local_irq_disable();
/* /*
* Here is where we need some platform-dependent setup * Here is where we need some platform-dependent setup
...@@ -113,7 +113,7 @@ int pm_do_bus_sleep(void) ...@@ -113,7 +113,7 @@ int pm_do_bus_sleep(void)
*/ */
__power_switch_wake_cleanup(); __power_switch_wake_cleanup();
sti(); local_irq_enable();
return 0; return 0;
} }
...@@ -191,7 +191,7 @@ static int try_set_cmode(int new_cmode) ...@@ -191,7 +191,7 @@ static int try_set_cmode(int new_cmode)
pm_send_all(PM_SUSPEND, (void *)3); pm_send_all(PM_SUSPEND, (void *)3);
/* now change cmode */ /* now change cmode */
cli(); local_irq_disable();
frv_dma_pause_all(); frv_dma_pause_all();
frv_change_cmode(new_cmode); frv_change_cmode(new_cmode);
...@@ -203,7 +203,7 @@ static int try_set_cmode(int new_cmode) ...@@ -203,7 +203,7 @@ static int try_set_cmode(int new_cmode)
determine_clocks(1); determine_clocks(1);
#endif #endif
frv_dma_resume_all(); frv_dma_resume_all();
sti(); local_irq_enable();
/* tell all the drivers we're resuming */ /* tell all the drivers we're resuming */
pm_send_all(PM_RESUME, (void *)0); pm_send_all(PM_RESUME, (void *)0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment