diff options
| author | Mario Limonciello <[email protected]> | 2024-12-06 16:12:03 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-01-08 09:59:44 +0000 |
| commit | d6caeafaa324e6aba5ed2ca1a416340c2fd061a2 (patch) | |
| tree | ca823e86f3cdc0fe3019b17e1675bd0e73d6182d /drivers/platform/x86/amd/pmc/pmc.c | |
| parent | x86/amd_nb, hwmon: (k10temp): Simplify amd_pci_dev_to_node_id() (diff) | |
| download | kernel-d6caeafaa324e6aba5ed2ca1a416340c2fd061a2.tar.gz kernel-d6caeafaa324e6aba5ed2ca1a416340c2fd061a2.zip | |
x86/amd_nb: Move SMN access code to a new amd_node driver
SMN access was bolted into amd_nb mostly as convenience. This has
limitations though that require incurring tech debt to keep it working.
Move SMN access to the newly introduced AMD Node driver.
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Yazen Ghannam <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Acked-by: Ilpo Järvinen <[email protected]> # pdx86
Acked-by: Shyam Sundar S K <[email protected]> # PMF, PMC
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
| -rw-r--r-- | drivers/platform/x86/amd/pmc/pmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c index 26b878ee5191..941b7753dd78 100644 --- a/drivers/platform/x86/amd/pmc/pmc.c +++ b/drivers/platform/x86/amd/pmc/pmc.c @@ -10,7 +10,6 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt -#include <asm/amd_nb.h> #include <linux/acpi.h> #include <linux/bitfield.h> #include <linux/bits.h> @@ -28,6 +27,8 @@ #include <linux/seq_file.h> #include <linux/uaccess.h> +#include <asm/amd_node.h> + #include "pmc.h" /* SMU communication registers */ |
