.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Intel Turbo Boost Max Technology 3.0 legacy (non HWP) enumeration driver |
---|
3 | 4 | * Copyright (c) 2017, Intel Corporation. |
---|
4 | 5 | * All rights reserved. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify it |
---|
9 | | - * under the terms and conditions of the GNU General Public License, |
---|
10 | | - * version 2, as published by the Free Software Foundation. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
13 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
14 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
15 | | - * more details. |
---|
16 | | - * |
---|
17 | 8 | */ |
---|
18 | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
19 | 10 | |
---|
20 | | -#include <linux/kernel.h> |
---|
| 11 | +#include <linux/cpufeature.h> |
---|
| 12 | +#include <linux/cpuhotplug.h> |
---|
21 | 13 | #include <linux/init.h> |
---|
| 14 | +#include <linux/kernel.h> |
---|
22 | 15 | #include <linux/topology.h> |
---|
23 | 16 | #include <linux/workqueue.h> |
---|
24 | | -#include <linux/cpuhotplug.h> |
---|
25 | | -#include <linux/cpufeature.h> |
---|
| 17 | + |
---|
26 | 18 | #include <asm/cpu_device_id.h> |
---|
27 | 19 | #include <asm/intel-family.h> |
---|
28 | 20 | |
---|
.. | .. |
---|
121 | 113 | return 0; |
---|
122 | 114 | } |
---|
123 | 115 | |
---|
124 | | -#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, } |
---|
125 | | - |
---|
126 | 116 | static const struct x86_cpu_id itmt_legacy_cpu_ids[] = { |
---|
127 | | - ICPU(INTEL_FAM6_BROADWELL_X), |
---|
128 | | - ICPU(INTEL_FAM6_SKYLAKE_X), |
---|
| 117 | + X86_MATCH_INTEL_FAM6_MODEL(BROADWELL_X, NULL), |
---|
| 118 | + X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_X, NULL), |
---|
129 | 119 | {} |
---|
130 | 120 | }; |
---|
131 | 121 | |
---|