Re: [patch v5 10/19] x86/smpboot: Teach it about topo.amd_node_id

From: Borislav Petkov
Date: Tue Feb 06 2024 - 10:49:11 EST


On Tue, Jan 23, 2024 at 01:53:45PM +0100, Thomas Gleixner wrote:
> static bool match_die(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
> {
> - if (c->topo.pkg_id == o->topo.pkg_id &&
> - c->topo.die_id == o->topo.die_id)
> - return true;
> - return false;
> + if (c->topo.pkg_id != o->topo.pkg_id || c->topo.die_id != o->topo.die_id)
> + return false;
> +
> + if (boot_cpu_has(X86_FEATURE_TOPOEXT) && topology_amd_nodes_per_pkg() > 1)

check_for_deprecated_apis: WARNING: arch/x86/kernel/smpboot.c:516: Do not use boot_cpu_has() - use cpu_feature_enabled() instead.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette