x86/cpu/topology: Move registration out of APIC code
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:35 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:41 +0000 (22:07 +0100)
commitc0a66c2847908e41c771ca2355fba935a82a9f62
tree431c8e5108968a912025f6125ac7fb9c1344b99b
parent1a5d0f62d10d5da44c2b6a97b6600dea8a7519fb
x86/cpu/topology: Move registration out of APIC code

The APIC/CPU registration sits in the middle of the APIC code. In fact this
is a topology evaluation function and has nothing to do with the inner
workings of the local APIC.

Move it out into a file which reflects what this is about.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240213210251.543948812@linutronix.de
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/topology.c [new file with mode: 0644]