hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/cpufreq/longrun.c
....@@ -1,7 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
3
- *
4
- * Licensed under the terms of the GNU GPL License version 2.
54 *
65 * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous*
76 */
....@@ -123,17 +122,13 @@
123122 * Validates a new CPUFreq policy. This function has to be called with
124123 * cpufreq_driver locked.
125124 */
126
-static int longrun_verify_policy(struct cpufreq_policy *policy)
125
+static int longrun_verify_policy(struct cpufreq_policy_data *policy)
127126 {
128127 if (!policy)
129128 return -EINVAL;
130129
131130 policy->cpu = 0;
132131 cpufreq_verify_within_cpu_limits(policy);
133
-
134
- if ((policy->policy != CPUFREQ_POLICY_POWERSAVE) &&
135
- (policy->policy != CPUFREQ_POLICY_PERFORMANCE))
136
- return -EINVAL;
137132
138133 return 0;
139134 }
....@@ -286,8 +281,7 @@
286281 };
287282
288283 static const struct x86_cpu_id longrun_ids[] = {
289
- { X86_VENDOR_TRANSMETA, X86_FAMILY_ANY, X86_MODEL_ANY,
290
- X86_FEATURE_LONGRUN },
284
+ X86_MATCH_VENDOR_FEATURE(TRANSMETA, X86_FEATURE_LONGRUN, NULL),
291285 {}
292286 };
293287 MODULE_DEVICE_TABLE(x86cpu, longrun_ids);