Re: Detecting x86 SMP on a UP kernel

From: Paul Menage (
Date: Sun Jul 29 2001 - 04:44:53 EST

>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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:40 EST