]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/cpu: Drop the variable smp_cores and smp_threads in x86_cpu_pre_plug()
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 19 Dec 2024 11:01:17 +0000 (06:01 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jan 2025 22:34:45 +0000 (23:34 +0100)
commit81bd60625fc23cb8d4d0e682dcc4223d5e1ead84
tree64b6a16b3be7b11ade564a0e388800d934f5cb70
parentd3bb5d0d4f5d4ad7dc6c02ea5fea51ca2f946593
i386/cpu: Drop the variable smp_cores and smp_threads in x86_cpu_pre_plug()

No need to define smp_cores and smp_threads, just using ms->smp.cores
and ms->smp.threads is straightforward. It's also consistent with other
checks of socket/die/module.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20241219110125.1266461-3-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/x86-common.c