diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2018-07-30 15:54:21 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-07-30 19:33:35 +0200 |
commit | 1088c6eef261939bda8346ec35b513790a2111d5 (patch) | |
tree | 3b54f42cce82046321bfdc44b69241d758948981 | |
parent | 608008a45798fe9e2aee04f99b5270ea57c1376f (diff) | |
download | linux-stable-1088c6eef261939bda8346ec35b513790a2111d5.tar.gz linux-stable-1088c6eef261939bda8346ec35b513790a2111d5.tar.bz2 linux-stable-1088c6eef261939bda8346ec35b513790a2111d5.zip |
x86/kvmclock: Mark kvm_get_preset_lpj() as __init
kvm_get_preset_lpj() is only called from kvmclock_init(), so mark it __init
as well.
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: <hpa@zytor.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář<rkrcmar@redhat.com>
Cc: <kvm@vger.kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm@vger.kernel.org
Link: https://lkml.kernel.org/r/20180730075421.22830-3-douly.fnst@cn.fujitsu.com
-rw-r--r-- | arch/x86/kernel/kvmclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c index 91b94c0ae4e3..d2edd7e6c294 100644 --- a/arch/x86/kernel/kvmclock.c +++ b/arch/x86/kernel/kvmclock.c @@ -145,7 +145,7 @@ static unsigned long kvm_get_tsc_khz(void) return pvclock_tsc_khz(this_cpu_pvti()); } -static void kvm_get_preset_lpj(void) +static void __init kvm_get_preset_lpj(void) { unsigned long khz; u64 lpj; |