Re: [patch 53/53] x86/cpu/topology: Get rid of cpuinfo::x86_max_cores

Zhang, Rui
2023-08-11T15:44:15Z

> --- a/arch/x86/kernel/smpboot.c
> +++ b/arch/x86/kernel/smpboot.c
> @@ -566,7 +566,7 @@ static void __init build_sched_topology(
>  void set_cpu_sibling_map(int cpu)
>  {
>         bool has_smt = topology_smt_supported();
> -       bool has_mp = has_smt || boot_cpu_data.x86_max_cores > 1;
> +       bool has_mp = has_smt || topology_num_cores_per_package() >
> 1;

or use
bool has_mp = topology_num_threads_per_package() > 1;
?

thanks,
rui