x86/mm: Add a x86_has_pat_wp() helper

Abstract the ioremap code away from the caching mode internals.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200408152745.1565832-2-hch@lst.de
This commit is contained in:
Christoph Hellwig 2020-04-08 17:27:42 +02:00 • committed by Borislav Petkov
commit 1f6f655e01
3 changed files with 10 additions and 6 deletions