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

xtensa: move asid_cache from fault.c to mmu.c

asid_cache is only useful with full MMU, but fault.c is also useful with
MPU. Move asid_cache definition to MMU-specific source file.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+2 -1
-1
arch/xtensa/mm/fault.c
··· 21 21 #include <asm/cacheflush.h> 22 22 #include <asm/hardirq.h> 23 23 24 - DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST; 25 24 void bad_page_fault(struct pt_regs*, unsigned long, int); 26 25 27 26 /*
+2
arch/xtensa/mm/mmu.c
··· 18 18 #include <asm/initialize_mmu.h> 19 19 #include <asm/io.h> 20 20 21 + DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST; 22 + 21 23 #if defined(CONFIG_HIGHMEM) 22 24 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) 23 25 {