diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 14:23:42 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 14:23:42 -0500 |
commit | a6f71745969d495d697d1ccd96385d2f7a963375 (patch) | |
tree | 959cb508e73e4b1757a1fdb8378c28a798564433 /arch/powerpc/kernel/misc_32.S | |
parent | 3b29daded680733a37ed6618e165e86df45d89ab (diff) |
[POWERPC] 85xx: Only invalidate TLB0 and TLB1
All current 85xx/e500 implementations only have two TLB
arrays. We are wasting cycles by invalidating TLB2 and TLB3.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/misc_32.S')
-rw-r--r-- | arch/powerpc/kernel/misc_32.S | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index be09f0d2d90b..5c2e253ddfb1 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32.S | |||
@@ -275,12 +275,6 @@ _GLOBAL(_tlbia) | |||
275 | /* Invalidate all entries in TLB1 */ | 275 | /* Invalidate all entries in TLB1 */ |
276 | li r3, 0x0c | 276 | li r3, 0x0c |
277 | tlbivax 0,3 | 277 | tlbivax 0,3 |
278 | /* Invalidate all entries in TLB2 */ | ||
279 | li r3, 0x14 | ||
280 | tlbivax 0,3 | ||
281 | /* Invalidate all entries in TLB3 */ | ||
282 | li r3, 0x1c | ||
283 | tlbivax 0,3 | ||
284 | msync | 278 | msync |
285 | #ifdef CONFIG_SMP | 279 | #ifdef CONFIG_SMP |
286 | tlbsync | 280 | tlbsync |
@@ -375,12 +369,8 @@ _GLOBAL(_tlbie) | |||
375 | #elif defined(CONFIG_FSL_BOOKE) | 369 | #elif defined(CONFIG_FSL_BOOKE) |
376 | rlwinm r4, r3, 0, 0, 19 | 370 | rlwinm r4, r3, 0, 0, 19 |
377 | ori r5, r4, 0x08 /* TLBSEL = 1 */ | 371 | ori r5, r4, 0x08 /* TLBSEL = 1 */ |
378 | ori r6, r4, 0x10 /* TLBSEL = 2 */ | ||
379 | ori r7, r4, 0x18 /* TLBSEL = 3 */ | ||
380 | tlbivax 0, r4 | 372 | tlbivax 0, r4 |
381 | tlbivax 0, r5 | 373 | tlbivax 0, r5 |
382 | tlbivax 0, r6 | ||
383 | tlbivax 0, r7 | ||
384 | msync | 374 | msync |
385 | #if defined(CONFIG_SMP) | 375 | #if defined(CONFIG_SMP) |
386 | tlbsync | 376 | tlbsync |