hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/cpufreq/p4-clockmod.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Pentium 4/Xeon CPU on demand clock modulation/speed scaling
34 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
....@@ -6,18 +7,12 @@
67 * (C) 2002 Tora T. Engstad
78 * All Rights Reserved
89 *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; either version
12
- * 2 of the License, or (at your option) any later version.
13
- *
1410 * The author(s) of this software shall not be held liable for damages
1511 * of any nature resulting due to the use of this software. This
1612 * software is provided AS-IS with no warranties.
1713 *
1814 * Date Errata Description
1915 * 20020525 N44, O17 12.5% or 25% DC causes lockup
20
- *
2116 */
2217
2318 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -134,7 +129,7 @@
134129 return speedstep_get_frequency(SPEEDSTEP_CPU_PCORE);
135130 case 0x0D: /* Pentium M (Dothan) */
136131 p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
137
- /* fall through */
132
+ fallthrough;
138133 case 0x09: /* Pentium M (Banias) */
139134 return speedstep_get_frequency(SPEEDSTEP_CPU_PM);
140135 }
....@@ -236,7 +231,7 @@
236231 };
237232
238233 static const struct x86_cpu_id cpufreq_p4_id[] = {
239
- { X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, X86_FEATURE_ACC },
234
+ X86_MATCH_VENDOR_FEATURE(INTEL, X86_FEATURE_ACC, NULL),
240235 {}
241236 };
242237