Skip to content

Commit

Permalink
x86/kvmclock: Mark kvm_get_preset_lpj() as __init
Browse files Browse the repository at this point in the history
kvm_get_preset_lpj() is only called from kvmclock_init(), so mark it __init
as well.

Signed-off-by: Dou Liyang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Pavel Tatashin <[email protected]>
Cc: <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc:   Radim Krčmář<[email protected]>
Cc:  <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: "Radim Krčmář" <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
douliyang authored and KAGA-KOKO committed Jul 30, 2018
1 parent 608008a commit 1088c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/kvmclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1088c6e

Please sign in to comment.