Detecting x86 SMP on a UP kernel

From: John Levon (moz@compsoc.man.ac.uk)
Date: Sat Jul 28 2001 - 21:43:54 EST


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."
-
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/



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