* Detecting x86 SMP on a UP kernel
@ 2001-07-29 2:43 John Levon
0 siblings, 0 replies; 2+ messages in thread
From: John Levon @ 2001-07-29 2:43 UTC (permalink / raw)
To: linux-kernel
Hi, I need to be able to detect underlying x86 SMP hardware
when running a UP kernel, from a module.
This is to avoid trashing the APIC setup on SMP hardware (normally
I have to enable the APIC, re-do the fixmap etc. so I can use the local
APIC with a stock kernel).
I don't want to require a kernel patch if possible (I suppose just
EXPORT_SYMBOL(smp_found_config) would do ...).
So can someone give me a hint on how I can detect underlying SMP hardware ?
I wouldn't need to do this if the ac tree APIC patches were in the kernel btw
thanks
john
--
"I'd rather be rudely informed than politely left in the dark."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Detecting x86 SMP on a UP kernel
[not found] <0C01A29FBAE24448A792F5C68F5EA47D142557@nasdaq.ms.ensim.com>
@ 2001-07-29 9:44 ` Paul Menage
0 siblings, 0 replies; 2+ messages in thread
From: Paul Menage @ 2001-07-29 9:44 UTC (permalink / raw)
To: John Levon; +Cc: linux-kernel
>
>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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-29 9:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-29 2:43 Detecting x86 SMP on a UP kernel John Levon
[not found] <0C01A29FBAE24448A792F5C68F5EA47D142557@nasdaq.ms.ensim.com>
2001-07-29 9:44 ` Paul Menage
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®