hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/platform/x86/intel_turbo_max_3.c
....@@ -1,28 +1,20 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Intel Turbo Boost Max Technology 3.0 legacy (non HWP) enumeration driver
34 * Copyright (c) 2017, Intel Corporation.
45 * All rights reserved.
56 *
67 * 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
- *
178 */
189 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
1910
20
-#include <linux/kernel.h>
11
+#include <linux/cpufeature.h>
12
+#include <linux/cpuhotplug.h>
2113 #include <linux/init.h>
14
+#include <linux/kernel.h>
2215 #include <linux/topology.h>
2316 #include <linux/workqueue.h>
24
-#include <linux/cpuhotplug.h>
25
-#include <linux/cpufeature.h>
17
+
2618 #include <asm/cpu_device_id.h>
2719 #include <asm/intel-family.h>
2820
....@@ -121,11 +113,9 @@
121113 return 0;
122114 }
123115
124
-#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
125
-
126116 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),
129119 {}
130120 };
131121