Juergen Gross
b5d3c72829
x86/mtrr: Move 32-bit code from mtrr.c to legacy.c
...
There is some code in mtrr.c which is relevant for old 32-bit CPUs
only. Move it to a new source legacy.c.
While modifying mtrr_init_finalize() fix spelling of its name.
Suggested-by: Borislav Petkov <bp@alien8.de >
Signed-off-by: Juergen Gross <jgross@suse.com >
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de >
Tested-by: Michael Kelley <mikelley@microsoft.com >
Link: https://lore.kernel.org/r/20230502120931.20719-9-jgross@suse.com
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de >
2023-06-01 15:04:33 +02:00
Thomas Gleixner
ec8f24b7fa
treewide: Add SPDX license identifier - Makefile/Kconfig
...
Add SPDX license identifiers to all Make/Kconfig files which:
- Have no license information of any form
These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:
GPL-2.0-only
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-05-21 10:50:46 +02:00
Joe Perches
e6d8c84a58
x86/mtrr: Rename main.c to mtrr.c and remove duplicate prefixes
...
Kbuild uses the first file as the name for KBUILD_MODNAME.
mtrr uses main.c as its first file, so rename that file to mtrr.c
and fixup the Makefile.
Remove the now duplicate "mtrr: " prefixes from the logging calls.
Signed-off-by: Joe Perches <joe@perches.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Link: https://lkml.kernel.org/r/ae1fa81a0d1fad87571967b91ea90f70f486e853.1525964384.git.joe@perches.com
2018-05-13 21:25:18 +02:00
Borislav Petkov
34d2819f20
x86, mtrr: Remove unused mtrr/state.c
...
The last reference to the helpers in
<arch/x86/kernel/cpu/mtrr/state.c> went away with
9a6b344ea9 leaving unused code.
Remove it.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com >
LKML-Reference: <20100204085128.GA513@liondog.tnic >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2010-02-04 10:01:38 +01:00
Yinghai Lu
0d890355bf
x86: separate mtrr cleanup/mtrr_e820 trim to separate file
...
Impact: cleanup
mtrr main.c is too big, seperate mtrr cleanup and mtrr e820 trim
code to another file.
Signed-off-by: Yinghai Lu <yinghai@kernel.org >
LKML-Reference: <49B87C7B.80809@kernel.org >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2009-03-13 02:52:19 +01:00
Thomas Gleixner
2ec1df4130
i386: move kernel/cpu/mtrr
...
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2007-10-11 11:16:28 +02:00