linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: c-r4k.c 2/7 micro prid optimization
From: Juan Quintela <quintela@mandrakesoft.com>
Date: Fri, 28 Mar 2003 01:52:04 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH]: c-r4k.c 2/7 micro prid optimization, Juan Quintela <=