Commit e46a5acd authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

[PATCH] sh64: Send cli()/sti() back from whence it came

There were a couple of cli()/sti() users left, so we get rid of them..
Hopefully this is the last of this mess.
Signed-off-by: default avatarJames Nelson <james4765@cwazy.co.uk>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 73f7d2c5
......@@ -425,7 +425,7 @@ static __init unsigned int get_cpu_hz(void)
*/
register unsigned long long __rtc_irq_flag __asm__ ("r3");
sti();
local_irq_enable();
do {} while (ctrl_inb(R64CNT) != 0);
ctrl_outb(RCR1_CIE, RCR1); /* Enable carry interrupt */
......@@ -444,7 +444,7 @@ static __init unsigned int get_cpu_hz(void)
"getcon " __CTC ", %0\n\t"
: "=r"(ctc_val), "=r" (__dummy), "=r" (__rtc_irq_flag)
: "0" (0));
cli();
local_irq_disable();
/*
* SH-3:
* CPU clock = 4 stages * loop
......
......@@ -64,11 +64,11 @@ static void enable_cayman_irq(unsigned int irq)
irq -= START_EXT_IRQS;
reg = EPLD_MASK_BASE + ((irq / 8) << 2);
bit = 1<<(irq % 8);
save_and_cli(flags);
local_irq_save(flags);
mask = ctrl_inl(reg);
mask |= bit;
ctrl_outl(mask, reg);
restore_flags(flags);
local_irq_restore(flags);
}
void disable_cayman_irq(unsigned int irq)
......@@ -81,11 +81,11 @@ void disable_cayman_irq(unsigned int irq)
irq -= START_EXT_IRQS;
reg = EPLD_MASK_BASE + ((irq / 8) << 2);
bit = 1<<(irq % 8);
save_and_cli(flags);
local_irq_save(flags);
mask = ctrl_inl(reg);
mask &= ~bit;
ctrl_outl(mask, reg);
restore_flags(flags);
local_irq_restore(flags);
}
static void ack_cayman_irq(unsigned int irq)
......
......@@ -148,7 +148,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
mm = tsk->mm;
/* Not an IO address, so reenable interrupts */
sti();
local_irq_enable();
/*
* If we're in an interrupt or have no user
......
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