Commit 1d31c451 authored by Russell King's avatar Russell King

[ARM] Clean up __cli(), __sti(), cli() to use local_irq_*

parent e0959598
...@@ -202,8 +202,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs) ...@@ -202,8 +202,7 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
if (status & SA_SAMPLE_RANDOM) if (status & SA_SAMPLE_RANDOM)
add_interrupt_randomness(irq); add_interrupt_randomness(irq);
__cli(); spin_lock_irq(&irq_controller_lock);
spin_lock(&irq_controller_lock);
} }
/* /*
......
...@@ -75,10 +75,10 @@ void (*pm_power_off)(void); ...@@ -75,10 +75,10 @@ void (*pm_power_off)(void);
*/ */
void default_idle(void) void default_idle(void)
{ {
__cli(); local_irq_disable();
if (!need_resched() && !hlt_counter) if (!need_resched() && !hlt_counter)
arch_idle(); arch_idle();
__sti(); local_irq_enable();
} }
/* /*
......
...@@ -100,7 +100,7 @@ EXPORT_SYMBOL(cpufreq_get); ...@@ -100,7 +100,7 @@ EXPORT_SYMBOL(cpufreq_get);
static void sa1100_power_off(void) static void sa1100_power_off(void)
{ {
mdelay(100); mdelay(100);
cli(); local_irq_disable();
/* disable internal oscillator, float CS lines */ /* disable internal oscillator, float CS lines */
PCFR = (PCFR_OPDE | PCFR_FP | PCFR_FS); PCFR = (PCFR_OPDE | PCFR_FP | PCFR_FS);
/* enable wake-up on GPIO0 (Assabet...) */ /* enable wake-up on GPIO0 (Assabet...) */
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
static void arch_reset(char mode) static void arch_reset(char mode)
{ {
short temp; short temp;
cli(); local_irq_disable();
/* Reset the Machine via pc[3] of the sequoia chipset */ /* Reset the Machine via pc[3] of the sequoia chipset */
outw(0x09,0x24); outw(0x09,0x24);
temp=inw(0x26); temp=inw(0x26);
......
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