linux/arch/x86/kernel/cpu/topology_common.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/cpu.h>

#include <xen/xen.h>

#include <asm/apic.h>
#include <asm/processor.h>
#include <asm/smp.h>

#include "cpu.h"

struct x86_topology_system x86_topo_system __ro_after_init;
EXPORT_SYMBOL_GPL();

unsigned int __amd_nodes_per_pkg __ro_after_init;
EXPORT_SYMBOL_GPL();

void topology_set_dom(struct topo_scan *tscan, enum x86_topology_domains dom,
		      unsigned int shift, unsigned int ncpus)
{}

static unsigned int __maybe_unused parse_num_cores_legacy(struct cpuinfo_x86 *c)
{}

static void parse_legacy(struct topo_scan *tscan)
{}

static bool fake_topology(struct topo_scan *tscan)
{}

static void parse_topology(struct topo_scan *tscan, bool early)
{}

static void topo_set_ids(struct topo_scan *tscan, bool early)
{}

void cpu_parse_topology(struct cpuinfo_x86 *c)
{}

void __init cpu_init_topology(struct cpuinfo_x86 *c)
{}