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>
tirimbino
Yinghai Lu 16 years ago committed by Ingo Molnar
parent c1ab7e93c6
commit 0d890355bf
  1. 2
      arch/x86/kernel/cpu/mtrr/Makefile
  2. 1089
      arch/x86/kernel/cpu/mtrr/cleanup.c
  3. 1055
      arch/x86/kernel/cpu/mtrr/main.c
  4. 3
      arch/x86/kernel/cpu/mtrr/mtrr.h

@ -1,3 +1,3 @@
obj-y := main.o if.o generic.o state.o
obj-y := main.o if.o generic.o state.o cleanup.o
obj-$(CONFIG_X86_32) += amd.o cyrix.o centaur.o

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -88,3 +88,6 @@ void mtrr_wrmsr(unsigned, unsigned, unsigned);
int amd_init_mtrr(void);
int cyrix_init_mtrr(void);
int centaur_init_mtrr(void);
extern int changed_by_mtrr_cleanup;
extern int mtrr_cleanup(unsigned address_bits);

Loading…
Cancel
Save