Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/mm/pat: Rename <asm/pat.h> => <asm/memtype.h>

pat.h is a file whose main purpose is to provide the memtype_*() APIs.

PAT is the low level hardware mechanism - but the high level abstraction
is memtype.

So name the header <memtype.h> as well - this goes hand in hand with memtype.c
and memtype_interval.c.

Signed-off-by: Ingo Molnar <mingo@kernel.org>

+21 -21
+1 -1
arch/x86/include/asm/mtrr.h
··· 24 24 #define _ASM_X86_MTRR_H 25 25 26 26 #include <uapi/asm/mtrr.h> 27 - #include <asm/pat.h> 27 + #include <asm/memtype.h> 28 28 29 29 30 30 /*
+3 -3
arch/x86/include/asm/pat.h arch/x86/include/asm/memtype.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _ASM_X86_PAT_H 3 - #define _ASM_X86_PAT_H 2 + #ifndef _ASM_X86_MEMTYPE_H 3 + #define _ASM_X86_MEMTYPE_H 4 4 5 5 #include <linux/types.h> 6 6 #include <asm/pgtable_types.h> ··· 24 24 25 25 bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn); 26 26 27 - #endif /* _ASM_X86_PAT_H */ 27 + #endif /* _ASM_X86_MEMTYPE_H */
+1 -1
arch/x86/include/asm/pci.h
··· 9 9 #include <linux/scatterlist.h> 10 10 #include <linux/numa.h> 11 11 #include <asm/io.h> 12 - #include <asm/pat.h> 12 + #include <asm/memtype.h> 13 13 #include <asm/x86_init.h> 14 14 15 15 struct pci_sysdata {
+1 -1
arch/x86/kernel/cpu/common.c
··· 49 49 #include <asm/cpu.h> 50 50 #include <asm/mce.h> 51 51 #include <asm/msr.h> 52 - #include <asm/pat.h> 52 + #include <asm/memtype.h> 53 53 #include <asm/microcode.h> 54 54 #include <asm/microcode_intel.h> 55 55 #include <asm/intel-family.h>
+1 -1
arch/x86/kernel/cpu/mtrr/generic.c
··· 15 15 #include <asm/tlbflush.h> 16 16 #include <asm/mtrr.h> 17 17 #include <asm/msr.h> 18 - #include <asm/pat.h> 18 + #include <asm/memtype.h> 19 19 20 20 #include "mtrr.h" 21 21
+1 -1
arch/x86/kernel/cpu/mtrr/mtrr.c
··· 52 52 #include <asm/e820/api.h> 53 53 #include <asm/mtrr.h> 54 54 #include <asm/msr.h> 55 - #include <asm/pat.h> 55 + #include <asm/memtype.h> 56 56 57 57 #include "mtrr.h" 58 58
+1 -1
arch/x86/kernel/cpu/scattered.c
··· 4 4 */ 5 5 #include <linux/cpu.h> 6 6 7 - #include <asm/pat.h> 7 + #include <asm/memtype.h> 8 8 #include <asm/apic.h> 9 9 #include <asm/processor.h> 10 10
+1 -1
arch/x86/kernel/cpu/topology.c
··· 7 7 8 8 #include <linux/cpu.h> 9 9 #include <asm/apic.h> 10 - #include <asm/pat.h> 10 + #include <asm/memtype.h> 11 11 #include <asm/processor.h> 12 12 13 13 #include "cpu.h"
+1 -1
arch/x86/kernel/x86_init.c
··· 20 20 #include <asm/irq.h> 21 21 #include <asm/io_apic.h> 22 22 #include <asm/hpet.h> 23 - #include <asm/pat.h> 23 + #include <asm/memtype.h> 24 24 #include <asm/tsc.h> 25 25 #include <asm/iommu.h> 26 26 #include <asm/mach_traps.h>
+1 -1
arch/x86/kvm/mmu/mmu.c
··· 40 40 #include <linux/kthread.h> 41 41 42 42 #include <asm/page.h> 43 - #include <asm/pat.h> 43 + #include <asm/memtype.h> 44 44 #include <asm/cmpxchg.h> 45 45 #include <asm/e820/api.h> 46 46 #include <asm/io.h>
+1 -1
arch/x86/mm/iomap_32.c
··· 4 4 */ 5 5 6 6 #include <asm/iomap.h> 7 - #include <asm/pat.h> 7 + #include <asm/memtype.h> 8 8 #include <linux/export.h> 9 9 #include <linux/highmem.h> 10 10
+1 -1
arch/x86/mm/ioremap.c
··· 24 24 #include <asm/pgtable.h> 25 25 #include <asm/tlbflush.h> 26 26 #include <asm/pgalloc.h> 27 - #include <asm/pat.h> 27 + #include <asm/memtype.h> 28 28 #include <asm/setup.h> 29 29 30 30 #include "physaddr.h"
+1 -1
arch/x86/mm/pat/memtype.c
··· 52 52 #include <asm/mtrr.h> 53 53 #include <asm/page.h> 54 54 #include <asm/msr.h> 55 - #include <asm/pat.h> 55 + #include <asm/memtype.h> 56 56 #include <asm/io.h> 57 57 58 58 #include "memtype.h"
+1 -1
arch/x86/mm/pat/memtype_interval.c
··· 16 16 #include <linux/gfp.h> 17 17 18 18 #include <asm/pgtable.h> 19 - #include <asm/pat.h> 19 + #include <asm/memtype.h> 20 20 21 21 #include "memtype.h" 22 22
+1 -1
arch/x86/mm/pat/set_memory.c
··· 24 24 #include <linux/uaccess.h> 25 25 #include <asm/pgalloc.h> 26 26 #include <asm/proto.h> 27 - #include <asm/pat.h> 27 + #include <asm/memtype.h> 28 28 #include <asm/set_memory.h> 29 29 30 30 #include "../mm_internal.h"
+1 -1
arch/x86/pci/i386.c
··· 34 34 #include <linux/errno.h> 35 35 #include <linux/memblock.h> 36 36 37 - #include <asm/pat.h> 37 + #include <asm/memtype.h> 38 38 #include <asm/e820/api.h> 39 39 #include <asm/pci_x86.h> 40 40 #include <asm/io_apic.h>
+1 -1
arch/x86/xen/mmu_pv.c
··· 67 67 #include <asm/linkage.h> 68 68 #include <asm/page.h> 69 69 #include <asm/init.h> 70 - #include <asm/pat.h> 70 + #include <asm/memtype.h> 71 71 #include <asm/smp.h> 72 72 #include <asm/tlb.h> 73 73
+1 -1
drivers/infiniband/hw/mlx5/main.c
··· 40 40 #include <linux/slab.h> 41 41 #include <linux/bitmap.h> 42 42 #if defined(CONFIG_X86) 43 - #include <asm/pat.h> 43 + #include <asm/memtype.h> 44 44 #endif 45 45 #include <linux/sched.h> 46 46 #include <linux/sched/mm.h>
+1 -1
drivers/media/pci/ivtv/ivtvfb.c
··· 37 37 #include <linux/ivtvfb.h> 38 38 39 39 #ifdef CONFIG_X86_64 40 - #include <asm/pat.h> 40 + #include <asm/memtype.h> 41 41 #endif 42 42 43 43 /* card parameters */