Messages in this thread | | | Date | Fri, 16 Apr 1999 20:55:24 -0700 (PDT) | From | George Bonser <> | Subject | Re: number of CPUs |
| |
On Fri, 16 Apr 1999, Albert D. Cahalan wrote:
> > 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/
| |