]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Remove unnecessary condition when sanity-checking WIMG bits
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Wed, 9 Jul 2008 15:28:07 +0000 (01:28 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Jul 2008 02:24:59 +0000 (12:24 +1000)
commit443dcac4d89622cbfc61f53523007979879d6f8e
tree8cf25bd652135b0079a9e73f79095434c70906c4
parent0f47331475201c7785454030a9976c8ac902a35d
powerpc: Remove unnecessary condition when sanity-checking WIMG bits

It is okay for both _PAGE_GUARDED and _PAGE_COHERENT (G and M) to be set
in the same pte.  In fact, even if that were not the case, there doesn't
seem to be any place where G is set without also setting I (_PAGE_NO_CACHE),
so the test for I is sufficient as a condition to clear _PAGE_COHERENT
when filling the hash table.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/beat_htab.c
arch/powerpc/platforms/pseries/lpar.c