summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@oracle.com>2019-06-26 16:54:49 +0800
committerThomas Gleixner <tglx@linutronix.de>2019-06-27 16:59:19 +0200
commitd97ee99bf225d35a50ed8812c3d037b2ba7ad2ea (patch)
tree85a5c1a0b3cf1c0a17957b8a0564ee0f59117fd7
parent670b004417e37b2d080ff6817703dc02e009dc94 (diff)
downloadlinux-d97ee99bf225d35a50ed8812c3d037b2ba7ad2ea.tar.bz2
x86/jailhouse: Mark jailhouse_x2apic_available() as __init
.. as it is only called at early bootup stage. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Borislav Petkov <bp@alien8.de> Cc: jailhouse-dev@googlegroups.com Link: https://lkml.kernel.org/r/1561539289-29180-1-git-send-email-zhenzhong.duan@oracle.com
-rw-r--r--arch/x86/kernel/jailhouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c
index 1b2ee55a2dfb..d96d56310d51 100644
--- a/arch/x86/kernel/jailhouse.c
+++ b/arch/x86/kernel/jailhouse.c
@@ -203,7 +203,7 @@ bool jailhouse_paravirt(void)
return jailhouse_cpuid_base() != 0;
}
-static bool jailhouse_x2apic_available(void)
+static bool __init jailhouse_x2apic_available(void)
{
/*
* The x2APIC is only available if the root cell enabled it. Jailhouse