MIPS: Handle highmem pages in __update_cache
authorPaul Burton <paul.burton@imgtec.com>
Tue, 1 Mar 2016 02:37:58 +0000 (02:37 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:58 +0000 (14:01 +0200)
commitf4281bba818105c7c91799abe40bc05c0dbdaa25
treea9ee001c0fd69795822db6ba78f0a098389710db
parent234859e49a15323cf1b2331bdde7f658c4cb45fb
MIPS: Handle highmem pages in __update_cache

The following patch will expose __update_cache to highmem pages. Handle
them by mapping them in for the duration of the cache maintenance, just
like in __flush_dcache_page. The code for that isn't shared because we
need the page address in __update_cache so sharing became messy. Given
that the entirity is an extra 5 lines, just duplicate it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Lars Persson <lars.persson@axis.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: stable <stable@vger.kernel.org> # v4.1+
Patchwork: https://patchwork.linux-mips.org/patch/12721/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/cache.c
This page took 0.025129 seconds and 5 git commands to generate.