lkml.org 
[lkml]   [2001]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
Date

thatlinuxguy@hotmail.com said:
> It never ceases to amaze me how ANAL some people on this list are.
> :-)

It's called attention to detail, and it's the _reason_ why a lot of people
are here.

The correct prefix to signify a multiple of 1024 is 'Ki'.

Index: arch/i386/kernel/setup.c
===================================================================
RCS file: /inst/cvs/linux/arch/i386/kernel/setup.c,v
retrieving revision 1.4.2.57
diff -u -r1.4.2.57 setup.c
--- arch/i386/kernel/setup.c 2001/05/14 10:32:23 1.4.2.57
+++ arch/i386/kernel/setup.c 2001/07/17 15:13:54
@@ -2406,7 +2406,7 @@

/* Cache size */
if (c->x86_cache_size >= 0)
- p += sprintf(p, "cache size\t: %d KB\n", c->x86_cache_size);
+ p += sprintf(p, "cache size\t: %d KiB\n", c->x86_cache_size);

/* We use exception 16 if we have hardware math and we've either seen it or the CPU claims it is internal */
fpu_exception = c->hard_math && (ignore_irq13 || cpu_has_fpu);

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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