diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-12-09 18:12:18 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-05-01 19:51:20 -0700 |
commit | 4916be4290d3e2ca3161528607da1e32d858fe64 (patch) | |
tree | 819e3170acc8c88e5ba8c0075f3bd313c5d2be78 /arch/xtensa/mm/mmu.c | |
parent | xtensa: iss: extract and constify network callbacks (diff) | |
download | linux-dev-4916be4290d3e2ca3161528607da1e32d858fe64.tar.xz linux-dev-4916be4290d3e2ca3161528607da1e32d858fe64.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/xtensa/mm/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/mm/mmu.c b/arch/xtensa/mm/mmu.c index 38acda4f04e8..92e158c69c10 100644 --- a/arch/xtensa/mm/mmu.c +++ b/arch/xtensa/mm/mmu.c @@ -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) { |