hwmon: (fam15h_power) Use topology_core_id()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 14 Aug 2023 08:18:33 +0000 (10:18 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Oct 2023 12:38:17 +0000 (14:38 +0200)
commit94f0b3978ea87c180b7e989e54faedd0a097f7ea
tree2987335d351fd72252fa00d06341de1ff43289a2
parent09253672b5d9f911b96651400a02ad6666b7ae2c
hwmon: (fam15h_power) Use topology_core_id()

Use the provided topology helper function instead of fiddling in cpu_data.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230814085112.506988471@linutronix.de
drivers/hwmon/fam15h_power.c