Index: kernel/arch/ia64/include/asm.h
===================================================================
--- kernel/arch/ia64/include/asm.h	(revision bcdc1853e6f31f16d78ec381309316d41beb379c)
+++ kernel/arch/ia64/include/asm.h	(revision fdb8c1782299efc9fce3a2c5e4200c7420cc6cbe)
@@ -417,4 +417,14 @@
 }
 
+/** Check interrupts state.
+ *
+ * @return True if interrupts are disabled.
+ *
+ */
+static inline bool interrupts_disabled(void)
+{
+	return psr_read() & PSR_I_MASK;	
+}
+
 /** Disable protection key checking. */
 static inline void pk_disable(void)
