.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
---|
3 | | - * |
---|
4 | | - * Licensed under the terms of the GNU GPL License version 2. |
---|
5 | 4 | * |
---|
6 | 5 | * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous* |
---|
7 | 6 | */ |
---|
.. | .. |
---|
123 | 122 | * Validates a new CPUFreq policy. This function has to be called with |
---|
124 | 123 | * cpufreq_driver locked. |
---|
125 | 124 | */ |
---|
126 | | -static int longrun_verify_policy(struct cpufreq_policy *policy) |
---|
| 125 | +static int longrun_verify_policy(struct cpufreq_policy_data *policy) |
---|
127 | 126 | { |
---|
128 | 127 | if (!policy) |
---|
129 | 128 | return -EINVAL; |
---|
130 | 129 | |
---|
131 | 130 | policy->cpu = 0; |
---|
132 | 131 | cpufreq_verify_within_cpu_limits(policy); |
---|
133 | | - |
---|
134 | | - if ((policy->policy != CPUFREQ_POLICY_POWERSAVE) && |
---|
135 | | - (policy->policy != CPUFREQ_POLICY_PERFORMANCE)) |
---|
136 | | - return -EINVAL; |
---|
137 | 132 | |
---|
138 | 133 | return 0; |
---|
139 | 134 | } |
---|
.. | .. |
---|
286 | 281 | }; |
---|
287 | 282 | |
---|
288 | 283 | 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), |
---|
291 | 285 | {} |
---|
292 | 286 | }; |
---|
293 | 287 | MODULE_DEVICE_TABLE(x86cpu, longrun_ids); |
---|