patch-2.2.10 linux/include/asm-alpha/io.h

Next file: linux/include/asm-alpha/irq.h
Previous file: linux/include/asm-alpha/init.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.9/linux/include/asm-alpha/io.h linux/include/asm-alpha/io.h
@@ -29,15 +29,16 @@
  */
 static inline void __set_hae(unsigned long new_hae)
 {
-	unsigned long ipl = swpipl(7);
+	unsigned long flags;
+	__save_and_cli(flags);
 
 	alpha_mv.hae_cache = new_hae;
 	*alpha_mv.hae_register = new_hae;
 	mb();
-
 	/* Re-read to make sure it was written.  */
 	new_hae = *alpha_mv.hae_register;
-	setipl(ipl);
+
+	__restore_flags(flags);
 }
 
 static inline void set_hae(unsigned long new_hae)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)