lkml.org 
[lkml]   [2003]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: proc_misc.c bug
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
> Maybe the reason to modify it is that NR_CPUS is not a good
> approximation/hint/clue.

NR_CPUS is not tooooo bad an approximation. After all, the output size is
approximately proportional to the number of CPUs.

Multiplied by the number of interrupts :(

CPU0 CPU1
0: 11982656 0 IO-APIC-edge timer
1: 26 0 IO-APIC-edge i8042
2: 0 0 XT-PIC cascade


We could perhaps just convert it to num_online_cpus() and run away. Depends
how heoric you're feeling.


-
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 13:34    [W:1.509 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site