| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Pentium 4/Xeon CPU on demand clock modulation/speed scaling |
|---|
| 3 | 4 | * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
|---|
| .. | .. |
|---|
| 6 | 7 | * (C) 2002 Tora T. Engstad |
|---|
| 7 | 8 | * All Rights Reserved |
|---|
| 8 | 9 | * |
|---|
| 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 | | - * |
|---|
| 14 | 10 | * The author(s) of this software shall not be held liable for damages |
|---|
| 15 | 11 | * of any nature resulting due to the use of this software. This |
|---|
| 16 | 12 | * software is provided AS-IS with no warranties. |
|---|
| 17 | 13 | * |
|---|
| 18 | 14 | * Date Errata Description |
|---|
| 19 | 15 | * 20020525 N44, O17 12.5% or 25% DC causes lockup |
|---|
| 20 | | - * |
|---|
| 21 | 16 | */ |
|---|
| 22 | 17 | |
|---|
| 23 | 18 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 134 | 129 | return speedstep_get_frequency(SPEEDSTEP_CPU_PCORE); |
|---|
| 135 | 130 | case 0x0D: /* Pentium M (Dothan) */ |
|---|
| 136 | 131 | p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS; |
|---|
| 137 | | - /* fall through */ |
|---|
| 132 | + fallthrough; |
|---|
| 138 | 133 | case 0x09: /* Pentium M (Banias) */ |
|---|
| 139 | 134 | return speedstep_get_frequency(SPEEDSTEP_CPU_PM); |
|---|
| 140 | 135 | } |
|---|
| .. | .. |
|---|
| 236 | 231 | }; |
|---|
| 237 | 232 | |
|---|
| 238 | 233 | 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), |
|---|
| 240 | 235 | {} |
|---|
| 241 | 236 | }; |
|---|
| 242 | 237 | |
|---|