lkml.org 
[lkml]   [2018]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 3/3] x86/cpuid: Make cpuinfo_x86.x86_model_id global
On Wed, Nov 14, 2018 at 11:29 PM Borislav Petkov <bp@alien8.de> wrote:
>
> From: Borislav Petkov <bp@suse.de>
>
> ... and __ro_after_init. Since the brand string is being read earlier
> now, in early_identify_cpu(), get_model_name() needs to read out the
> extended CPUID level for the brand string. This is temporary only, until
> the full CPUID read out has been added.

> drivers/platform/x86/intel_ips.c | 6 +++---
> 15 files changed, 35 insertions(+), 35 deletions(-)



> diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
> index 225638a1b09e..4309f198cbad 100644
> --- a/drivers/platform/x86/intel_ips.c
> +++ b/drivers/platform/x86/intel_ips.c
> @@ -1367,11 +1367,11 @@ static struct ips_mcp_limits *ips_detect_cpu(struct ips_driver *ips)
> else
> ips->turbo_toggle_allowed = false;
>
> - if (strstr(boot_cpu_data.x86_model_id, "CPU M"))
> + if (strstr(x86_model_id, "CPU M"))
> limits = &ips_sv_limits;
> - else if (strstr(boot_cpu_data.x86_model_id, "CPU L"))
> + else if (strstr(x86_model_id, "CPU L"))
> limits = &ips_lv_limits;
> - else if (strstr(boot_cpu_data.x86_model_id, "CPU U"))
> + else if (strstr(x86_model_id, "CPU U"))
> limits = &ips_ulv_limits;
> else {
> dev_info(ips->dev, "No CPUID match found.\n");

Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>

for PDx86 bits

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-11-27 16:57    [W:0.036 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site