Commit 4916be42 authored by Max Filippov's avatar Max Filippov
Browse files

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: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 2aed7af3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);

/*
+2 −0
Original line number Diff line number Diff line
@@ -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)
{