From: Juan Quintela <quintela@mandrakesoft.com>
To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: c-r4k.c 1/7 s/switch/formula/
Date: Fri, 28 Mar 2003 01:51:57 +0100 [thread overview]
Message-ID: <m2y9309utu.fsf@neno.mitica> (raw)
Hi
use the same calculation for sc_size as in every other *_size.
Later, Juan.
build/arch/mips/mm/c-r4k.c | 15 +--------------
1 files changed, 1 insertion(+), 14 deletions(-)
diff -puN build/arch/mips/mm/c-r4k.c~c-r4k_remove_switch build/arch/mips/mm/c-r4k.c
--- 24/build/arch/mips/mm/c-r4k.c~c-r4k_remove_switch 2003-03-28 00:33:48.000000000 +0100
+++ 24-quintela/build/arch/mips/mm/c-r4k.c 2003-03-28 00:33:48.000000000 +0100
@@ -635,20 +635,7 @@ static int __init probe_scache(unsigned
if ((config >> 17) & 1)
return 0;
- switch ((config >> 22) & 3) {
- case 0:
- sc_lsize = 16;
- break;
- case 1:
- sc_lsize = 32;
- break;
- case 2:
- sc_lsize = 64;
- break;
- case 3:
- sc_lsize = 128;
- break;
- }
+ sc_lsize = 16 << ((config >> 22) & 3);
begin = (unsigned long) &stext;
begin &= ~((4 * 1024 * 1024) - 1);
_
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
next reply other threads:[~2003-03-28 0:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 0:51 Juan Quintela [this message]
2003-03-29 0:49 ` [PATCH]: c-r4k.c 1/7 s/switch/formula/ Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2y9309utu.fsf@neno.mitica \
--to=quintela@mandrakesoft.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox