powerpc/8xx: remove unused _PAGE_WRITETHRU
_PAGE_WRITETHRU is only used in: * AMIGA_Z2RAM block driver which is never activated on powerPC * Video/FB driver which is for PPC_PMAC Therefore, no need to spend time in 8xx TLB miss handlers for handling it. And by removing it, we free up bit 20 which then avoids having to clear it on each TLB miss. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
cd99ddbea2
commit
5f356497c3
@@ -486,10 +486,6 @@ _ENTRY(DTLBMiss_jmp)
|
||||
* above.
|
||||
*/
|
||||
rlwimi r11, r10, 0, 26, 27
|
||||
/* Insert the WriteThru flag into the TWC from the Linux PTE.
|
||||
* It is bit 25 in the Linux PTE and bit 30 in the TWC
|
||||
*/
|
||||
rlwimi r11, r10, 32-5, 30, 30
|
||||
mtspr SPRN_MD_TWC, r11
|
||||
|
||||
/* In 4k pages mode, SPS (bit 28) in RPN must match PS[1] (bit 29)
|
||||
@@ -523,7 +519,6 @@ _ENTRY(DTLBMiss_jmp)
|
||||
#else
|
||||
rlwimi r10, r11, 0, 24, 28 /* Set 24-27, clear 28 */
|
||||
#endif
|
||||
rlwimi r10, r11, 0, 20, 20 /* clear 20 */
|
||||
mtspr SPRN_MD_RPN, r10 /* Update TLB entry */
|
||||
|
||||
/* Restore registers */
|
||||
|
Reference in New Issue
Block a user