From: Borislav Petkov (AMD) Date: Sun, 18 Dec 2022 20:52:42 +0000 (+0100) Subject: x86/tsc: Make recalibrate_cpu_khz() export GPL only X-Git-Tag: v6.3-rc1~184^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8fe6d84947582e2c076abc6253b80709fb047935;p=thirdparty%2Fkernel%2Flinux.git x86/tsc: Make recalibrate_cpu_khz() export GPL only A quick search doesn't reveal any use outside of the kernel - which would be questionable to begin with anyway - so make the export GPL only. Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/Y599miBzWRAuOwhg@zn.tnic --- diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index a78e73da4a74b..eaeffef93a12a 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -912,8 +912,7 @@ void recalibrate_cpu_khz(void) cpu_khz_old, cpu_khz); #endif } - -EXPORT_SYMBOL(recalibrate_cpu_khz); +EXPORT_SYMBOL_GPL(recalibrate_cpu_khz); static unsigned long long cyc2ns_suspend;