mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
ab234a260b
POPF is a rather expensive operation, so don't use it for restoring irq flags. Instead, test whether interrupts are enabled in the flags parameter and enable interrupts via STI in that case. This results in the restore_fl paravirt op to be no longer needed. Suggested-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210120135555.32594-7-jgross@suse.com
15 lines
274 B
ArmAsm
15 lines
274 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#include <asm/asm.h>
|
|
#include <asm/export.h>
|
|
#include <linux/linkage.h>
|
|
|
|
/*
|
|
* unsigned long native_save_fl(void)
|
|
*/
|
|
SYM_FUNC_START(native_save_fl)
|
|
pushf
|
|
pop %_ASM_AX
|
|
ret
|
|
SYM_FUNC_END(native_save_fl)
|
|
EXPORT_SYMBOL(native_save_fl)
|