generic/pgtable: Introduce {p4d,pgd}_same()
authorDan Williams <dan.j.williams@intel.com>
Tue, 4 Dec 2018 21:37:11 +0000 (13:37 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Dec 2018 08:03:06 +0000 (09:03 +0100)
commit0cebbb60f759a709dabb3c87b9704f9844878850
tree593a2f8c46aaa3cd9f65163b787bee5943e0a5b6
parentc683c37cd13246941924c48f6c6a9863425e0cec
generic/pgtable: Introduce {p4d,pgd}_same()

In preparation for introducing '_safe' versions of page table entry 'set'
helpers, introduce generic versions of p4d_same() and pgd_same().

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/154395943153.32119.1733586547359626311.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/asm-generic/pgtable.h