summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/cpu.h')
-rw-r--r--arch/x86/machine/cpu.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h
index edc98801..ab087d86 100644
--- a/arch/x86/machine/cpu.h
+++ b/arch/x86/machine/cpu.h
@@ -367,15 +367,11 @@ cpu_intr_restore(unsigned long eflags)
*
* Implies a compiler barrier.
*/
-static __always_inline unsigned long
-cpu_intr_save(void)
+static __always_inline void
+cpu_intr_save(unsigned long *eflags)
{
- unsigned long eflags;
-
- eflags = cpu_get_eflags();
+ *eflags = cpu_get_eflags();
cpu_intr_disable();
-
- return eflags;
}
/*