lkml.org 
[lkml]   [2001]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] duplicate check in setup.c

Hi Alan,

We check for 'dl' twice in the cachesize checking in setup.c

'good eyes' to John Levon for spotting this before me,
this patch has been sitting around for a while.

regards,

Dave.

--
| Dave Jones. http://www.suse.de/~davej
| SuSE Labs

diff -urN --exclude-from=/home/davej/.exclude linux/arch/i386/kernel/setup.c linux-dj/arch/i386/kernel/setup.c
--- linux/arch/i386/kernel/setup.c Sat Feb 10 02:49:30 2001
+++ linux-dj/arch/i386/kernel/setup.c Sat Feb 10 03:04:31 2001
@@ -1563,12 +1563,10 @@
case 4:
if ( c->x86 > 6 && dl ) {
/* P4 family */
- if ( dl ) {
- /* L3 cache */
- cs = 128 << (dl-1);
- l3 += cs;
- break;
- }
+ /* L3 cache */
+ cs = 128 << (dl-1);
+ l3 += cs;
+ break;
}
/* else same as 8 - fall through */
case 8:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.029 / U:3.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site