[PATCH]: c-r4k.c 2/7 micro prid optimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
        prid is only used during init.

Later, Juan.

 build/arch/mips/mm/c-r4k.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN build/arch/mips/mm/c-r4k.c~c-r4k_move_prid_call build/arch/mips/mm/c-r4k.c
--- 24/build/arch/mips/mm/c-r4k.c~c-r4k_move_prid_call	2003-03-27 15:40:38.000000000 +0100
+++ 24-quintela/build/arch/mips/mm/c-r4k.c	2003-03-27 15:41:06.000000000 +0100
@@ -45,7 +45,7 @@ static unsigned long scache_size, sc_lsi
 
 static void r4k_blast_dcache_page(unsigned long addr)
 {
-	unsigned int prid = read_c0_prid() & 0xfff0;
+	unsigned int prid;
 	static void *l = &&init;
 
 	goto *l;
@@ -74,6 +74,7 @@ dc_32_r4600:
 	}
 
 init:
+	prid = read_c0_prid() & 0xfff0;
 	if (prid == 0x2010)			/* R4600 V1.7 */
 		l = &&dc_32_r4600;
 	else if (dc_lsize == 16)

_


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux