xtensa: move asid_cache from fault.c to mmu.c
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 10 Dec 2019 02:12:18 +0000 (18:12 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:20 +0000 (19:51 -0700)
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>
arch/xtensa/mm/fault.c
arch/xtensa/mm/mmu.c

index 06d0973a0d7472e4b7777231fa775b17a2ac9200..2a120c0243349a1ef503a4affc5ae1b3f259e54a 100644 (file)
@@ -21,7 +21,6 @@
 #include <asm/cacheflush.h>
 #include <asm/hardirq.h>
 
-DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST;
 void bad_page_fault(struct pt_regs*, unsigned long, int);
 
 /*
index 38acda4f04e85d5db3d91bb0a0f97819bf6dc7a9..92e158c69c103353e1d9a17105876cbc6e67f8f3 100644 (file)
@@ -18,6 +18,8 @@
 #include <asm/initialize_mmu.h>
 #include <asm/io.h>
 
+DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST;
+
 #if defined(CONFIG_HIGHMEM)
 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages)
 {