[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bb09309eb9b4de8b8eff83d00d34c135b048fe25.1565856842.git.rahul.tanwar@linux.intel.com>
Date: Thu, 15 Aug 2019 17:46:45 +0800
From: Rahul Tanwar <rahul.tanwar@...ux.intel.com>
To: tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, hpa@...or.com,
x86@...nel.org
Cc: andriy.shevchenko@...el.com, alan@...ux.intel.com,
ricardo.neri-calderon@...ux.intel.com, rafael.j.wysocki@...el.com,
linux-kernel@...r.kernel.org, qi-ming.wu@...el.com,
cheol.yong.kim@...el.com, rahul.tanwar@...el.com,
Rahul Tanwar <rahul.tanwar@...ux.intel.com>
Subject: [PATCH 1/3] x86: cpu: Use constant definitions for CPU type
This patch replaces direct values usage with constant definitions usage
when access CPU models.
Signed-off-by: Rahul Tanwar <rahul.tanwar@...ux.intel.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@...el.com>
---
arch/x86/kernel/cpu/intel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index 8d6d92ebeb54..0419fba1ea56 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -265,9 +265,9 @@ static void early_init_intel(struct cpuinfo_x86 *c)
/* Penwell and Cloverview have the TSC which doesn't sleep on S3 */
if (c->x86 == 6) {
switch (c->x86_model) {
- case 0x27: /* Penwell */
- case 0x35: /* Cloverview */
- case 0x4a: /* Merrifield */
+ case INTEL_FAM6_ATOM_SALTWELL_MID: /* Penwell */
+ case INTEL_FAM6_ATOM_SALTWELL_TABLET: /* Cloverview */
+ case INTEL_FAM6_ATOM_SILVERMONT_MID: /* Merrifield */
set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC_S3);
break;
default:
--
2.11.0
Powered by blists - more mailing lists