x86/mtrr: Move cache control code to cacheinfo.c
authorJuergen Gross <jgross@suse.com>
Wed, 2 Nov 2022 07:47:03 +0000 (08:47 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 10 Nov 2022 12:12:44 +0000 (13:12 +0100)
commit23a63e369098a8503550d1df80f4b4801af32c19
treedceb4ebe1d76e05e75d21cd73be3bf08e68147e5
parent4ad7149e46d048d3a543c96d35c1d255208dd33a
x86/mtrr: Move cache control code to cacheinfo.c

Prepare making PAT and MTRR support independent from each other by
moving some code needed by both out of the MTRR-specific sources.

  [ bp: Massage commit message. ]

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221102074713.21493-7-jgross@suse.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/cacheinfo.c
arch/x86/kernel/cpu/mtrr/generic.c