[PATCH] duplicate check in setup.c

©[@ÄØÿ¿8þÿ¿©[@ÄØÿ¿8þÿ¿©[@ÄØÿ¿8þÿ¿=?iso-8859-1?Q?Jakob_=D8stergaard?= (davej@suse.de)
Sun, 11 Feb 2001 02:58:51 +0000 (GMT)


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/