diff options
author | 2023-06-20 16:44:33 +0200 | |
---|---|---|
committer | 2023-08-05 08:31:42 +0200 | |
commit | 5b87c058bf67905fcadf7b0a0786a6989e604cab (patch) | |
tree | 2542f4fd0e0db52ff480e013aa8d8d68f90df396 /drivers/base/node.c | |
parent | x86/cpuid: make cpuid_class a static const structure (diff) | |
download | linux-rng-5b87c058bf67905fcadf7b0a0786a6989e604cab.tar.xz linux-rng-5b87c058bf67905fcadf7b0a0786a6989e604cab.zip |
x86/MSR: make msr_class a static const structure
Now that the driver core allows for struct class to be in read-only
memory, move the msr_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230620144431.583290-5-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/node.c')
0 files changed, 0 insertions, 0 deletions