>
> I need a way for userspace to get the number of CPUs. It appears that
> /proc/interrupts doesn't have the nice header for every architecture,
> and /proc/cpuinfo is hopelessly non-portable.
This seems to work for me on both 2.2 and 2.0
grep -c processor /proc/cpuinfo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/