Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo

David Woodhouse (dwmw2@infradead.org)
Tue, 17 Jul 2001 16:18:07 +0100


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/