summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/kvm/lapic.c')
-rw-r--r--kernel/arch/x86/kvm/lapic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/arch/x86/kvm/lapic.c b/kernel/arch/x86/kvm/lapic.c
index 3d1b17068..6cd4f4b32 100644
--- a/kernel/arch/x86/kvm/lapic.c
+++ b/kernel/arch/x86/kvm/lapic.c
@@ -2266,3 +2266,9 @@ void kvm_lapic_init(void)
jump_label_rate_limit(&apic_hw_disabled, HZ);
jump_label_rate_limit(&apic_sw_disabled, HZ);
}
+
+void kvm_lapic_exit(void)
+{
+ static_key_deferred_flush(&apic_hw_disabled);
+ static_key_deferred_flush(&apic_sw_disabled);
+}