forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/cpufreq/speedstep-smi.c
....@@ -1,10 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Intel SpeedStep SMI driver.
34 *
45 * (C) 2003 Hiroshi Miura <miura@da-cha.org>
5
- *
6
- * Licensed under the terms of the GNU GPL License version 2.
7
- *
86 */
97
108
....@@ -301,15 +299,11 @@
301299 };
302300
303301 static const struct x86_cpu_id ss_smi_ids[] = {
304
- { X86_VENDOR_INTEL, 6, 0xb, },
305
- { X86_VENDOR_INTEL, 6, 0x8, },
306
- { X86_VENDOR_INTEL, 15, 2 },
302
+ X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, 0x8, 0),
303
+ X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, 0xb, 0),
304
+ X86_MATCH_VENDOR_FAM_MODEL(INTEL, 15, 0x2, 0),
307305 {}
308306 };
309
-#if 0
310
-/* Not auto loaded currently */
311
-MODULE_DEVICE_TABLE(x86cpu, ss_smi_ids);
312
-#endif
313307
314308 /**
315309 * speedstep_init - initializes the SpeedStep CPUFreq driver