]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Revert "x86/hyperv: fix logical processor creation"
authorWei Liu <wei.liu@kernel.org>
Wed, 21 Jul 2021 15:55:43 +0000 (15:55 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 21 Jul 2021 15:55:43 +0000 (15:55 +0000)
This reverts commit 450605c28d571eddca39a65fdbc1338add44c6d9.

Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c

index cc8f1773deca74bef60d3f3975e74dd565c8b965..c890d67a64ad0e9f8c4b2c060e3eda68a1c33169 100644 (file)
@@ -237,7 +237,7 @@ static void __init hv_smp_prepare_cpus(unsigned int max_cpus)
        for_each_present_cpu(i) {
                if (i == 0)
                        continue;
-               ret = hv_call_add_logical_proc(numa_cpu_node(i), i, i);
+               ret = hv_call_add_logical_proc(numa_cpu_node(i), i, cpu_physical_id(i));
                BUG_ON(ret);
        }