x86/tsc: Make recalibrate_cpu_khz() export GPL only
authorBorislav Petkov (AMD) <bp@alien8.de>
Sun, 18 Dec 2022 20:52:42 +0000 (21:52 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 11 Feb 2023 09:44:07 +0000 (10:44 +0100)
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) <bp@alien8.de>
Link: https://lore.kernel.org/r/Y599miBzWRAuOwhg@zn.tnic
arch/x86/kernel/tsc.c

index a78e73da4a74b351bf82407babe079b0b057fbc1..eaeffef93a12a918771e74b99f077473a8c14471 100644 (file)
@@ -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;