x86/cpa: use an undefined PTE bit for testing CPA
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 1 Jul 2008 23:46:37 +0000 (16:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:16:30 +0000 (13:16 +0200)
commit5a654ba7a88d90483d0f0586297ea9075d755fc8
treed3832d3d7ba02dd7f39f125536d754fcb2ea0b83
parentef5e94af16c0c82452e1ea5d387e1203dd2198d6
x86/cpa: use an undefined PTE bit for testing CPA

Rather than using _PAGE_GLOBAL - which not all CPUs support - to test
CPA, use one of the reserved-for-software-use PTE flags instead.  This
allows CPA testing to work on CPUs which don't support PGD.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr-test.c