Re: [PATCH 3/3] x86/cpuid: Make cpuinfo_x86.x86_model_id global
From: Andy Shevchenko
Date: Tue Nov 27 2018 - 10:56:03 EST
On Wed, Nov 14, 2018 at 11:29 PM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> From: Borislav Petkov <bp@xxxxxxx>
>
> ... 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@xxxxxxxxx>
for PDx86 bits
--
With Best Regards,
Andy Shevchenko