linux/arch/arc/mm
Vineet Gupta 6128df5be4 ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only
MMU SCRATCH_DATA0 register is intended to cache task pgd. However in
ARC700 SMP port, it has to be repurposed for re-entrant interrupt
handling, while UP port doesn't. We currently handle these use-cases
using a fabricated #define which has usual issues of dependency nesting
and obvious ugliness.

So clean this up: for ARC700 don't use to cache pgd (even in UP) and do
the opposite for ARCv2.

And while here, switch to canonical pgd_offset().

Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
2021-08-24 14:25:48 -07:00
..
cache.c ARC: retire MMUv1 and MMUv2 support 2021-08-24 14:25:47 -07:00
dma.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
extable.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
fault.c ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only 2021-08-24 14:25:48 -07:00
highmem.c arc/mm/highmem: Use generic kmap atomic implementation 2020-11-06 23:14:55 +01:00
init.c arc: convert to setup_initial_init_mm() 2021-07-08 11:48:21 -07:00
ioremap.c ARC: mm: PAE: use 40-bit physical page mask 2021-05-10 12:38:59 -07:00
Makefile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mmap.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tlb.c ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only 2021-08-24 14:25:48 -07:00
tlbex.S ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only 2021-08-24 14:25:48 -07:00