[patch 01/53] x86/cpu/topology: Cure off by one in fake_topology()

From: Thomas Gleixner
Date: Mon Aug 07 2023 - 09:52:42 EST


The shift count for a single core CPU is obviously 0 and not 1.

Not that it matters much, but keep it correct.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/x86/kernel/cpu/topology_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/cpu/topology_common.c
+++ b/arch/x86/kernel/cpu/topology_common.c
@@ -75,7 +75,7 @@ static bool fake_topology(struct topo_sc
* which has useless CPUID information.
*/
topology_set_dom(tscan, TOPO_SMT_DOMAIN, 0, 1);
- topology_set_dom(tscan, TOPO_CORE_DOMAIN, 1, 1);
+ topology_set_dom(tscan, TOPO_CORE_DOMAIN, 0, 1);

return tscan->c->cpuid_level < 1 || xen_pv_domain();
}