[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eefd904e-cbba-4062-872f-fdfa981b0cb3@suse.com>
Date: Mon, 10 Jun 2024 09:59:07 +0300
From: Nikolay Borisov <nik.borisov@...e.com>
To: x86@...nel.org
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/cpu: Move identify_cpu_without_cpuid() into main
branch
On 21.05.24 г. 15:48 ч., Nikolay Borisov wrote:
> No point in duplicating if (!have_cpuid_p()) check. Simply move
> identify_cpu_without_cpuid() into the else branch. No functional
> changes.
>
> Signed-off-by: Nikolay Borisov <nik.borisov@...e.com>
ping
> ---
> arch/x86/kernel/cpu/common.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
> index 2b170da84f97..69265c0acaea 100644
> --- a/arch/x86/kernel/cpu/common.c
> +++ b/arch/x86/kernel/cpu/common.c
> @@ -1578,9 +1578,6 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
> memset(&c->x86_capability, 0, sizeof(c->x86_capability));
> c->extended_cpuid_level = 0;
>
> - if (!have_cpuid_p())
> - identify_cpu_without_cpuid(c);
> -
> /* cyrix could have cpuid enabled via c_identify()*/
> if (have_cpuid_p()) {
> cpu_detect(c);
> @@ -1601,6 +1598,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
> if (this_cpu->c_bsp_init)
> this_cpu->c_bsp_init(c);
> } else {
> + identify_cpu_without_cpuid(c);
> setup_clear_cpu_cap(X86_FEATURE_CPUID);
> get_cpu_address_sizes(c);
> cpu_init_topology(c);
Powered by blists - more mailing lists