ARM: pgtable: use pXd_none_or_clear_bad() in pgd_free()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 21 Nov 2010 23:48:55 +0000 (23:48 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Nov 2010 20:45:46 +0000 (20:45 +0000)
commit6e4beb5e682953212da48ebb9e5c90408b8d38ae
tree7db9b9ce44dee035c738c5b292235447987bc099
parentb0d03745b18c39b8e86e70f7778f2093d2cd4ed7
ARM: pgtable: use pXd_none_or_clear_bad() in pgd_free()

Remove knowledge of the 2-level wrapping in pgd_free(), and use the
pXd_none_or_clear_bad() macros when checking the entries.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/pgd.c