Skip to contentSkip to conversation

sh: remove cli()/sti() in arch/sh/boards/mpc1211/setup.c

PATCH New James Nelson 1 participant 1 message Jan 5, 2005 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: remove cli()/sti() in arch/sh/boards/mpc1211/setup.c

arch/sh/boards/mpc1211/setup.c +6 -6
diff -urN --exclude='*~' linux-2.6.10-mm1-original/arch/sh/boards/mpc1211/setup.c linux-2.6.10-mm1/arch/sh/boards/mpc1211/setup.c
@@ -83,7 +83,7 @@
 {
 	unsigned long flags;
 
-	save_and_cli(flags);
+	local_irq_save(flags);
 	if( irq < 8) {
 		m_irq_mask |= (1 << irq);
 		outb(m_irq_mask,I8259_M_MR);
@@ -91,7 +91,7 @@
 		s_irq_mask |= (1 << (irq - 8));
 		outb(s_irq_mask,I8259_S_MR);
 	}
-	restore_flags(flags);
+	local_irq_restore(flags);
 
 }
 
@@ -99,7 +99,7 @@
 {
 	unsigned long flags;
 
-	save_and_cli(flags);
+	local_irq_save(flags);
 
 	if( irq < 8) {
 		m_irq_mask &= ~(1 << irq);
@@ -108,7 +108,7 @@
 		s_irq_mask &= ~(1 << (irq - 8));
 		outb(s_irq_mask,I8259_S_MR);
 	}
-	restore_flags(flags);
+	local_irq_restore(flags);
 }
 
 static inline int mpc1211_irq_real(unsigned int irq)
@@ -134,7 +134,7 @@
 {
 	unsigned long flags;
 
-	save_and_cli(flags);
+	local_irq_save(flags);
 
 	if(irq < 8) {
 		if(m_irq_mask & (1<<irq)){
@@ -163,7 +163,7 @@
 		outb(0x60+(irq-8),I8259_S_CR); 	/* EOI */
 		outb(0x60+2,I8259_M_CR);
 	}
-	restore_flags(flags);
+	local_irq_restore(flags);
 }
 
 static void end_mpc1211_irq(unsigned int irq)