]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
x86: make pgd/pud/pmd/pte_none consistent
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 5 Feb 2009 19:31:17 +0000 (11:31 -0800)
committerJeremy Fitzhardinge <jeremy@goop.org>
Fri, 6 Feb 2009 20:31:51 +0000 (12:31 -0800)
commit26c8e3179933c5c9071b16db76ab6de58a787d06
treec91b0e5eaa71cd123791280224431fbfb4aed520
parent18a7a199f97a7509fb987722e543f1aac3d7ada5
x86: make pgd/pud/pmd/pte_none consistent

The _none test is done differently for every level of the pagetable.
Standardize them by:

 1: Use the native_X_val to extract the raw entry, with no need to go
    via paravirt_ops, diff -r 1d0646d0d319 arch/x86/include/asm/pgtable.h, and
 2: Compare with 0 rather than using a boolean !, since they are actually values
    and not booleans.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/pgtable.h