Re: Detecting x86 SMP on a UP kernel

Paul Menage (pmenage@ensim.com)
Sun, 29 Jul 2001 02:44:53 -0700


>
>Hi, I need to be able to detect underlying x86 SMP hardware
>when running a UP kernel, from a module.
>

A simple and AFAIK reasonably reliable user-space approach is to use
the mptable program, and grep the output for the string "AP,"
(additional processor). If you're looking for SMP support in the
motherboard, rather than the existence of the additional processor(s),
then you might want to parse the output in other ways.

You could probably do this more directly from within the kernel, but
mptable may provide a useful starting point.

You can find mptable at http://www.ima.umn.edu/~klee/linux/mptable.c

Paul
-
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/