arla on Linux SMP
Aaron M. Ucko
amu at mit.edu
Fri Aug 14 16:37:34 CEST 1998
<map at stacken.kth.se> (Magnus Ahltorp) writes:
> Do you have a general solution as to when -D__SMP__ should be used and
> when it shouldn't? How do I know that the compilation is done for an
> SMP kernel?
You have to look at the top-level Makefile corresponding to the
kernel. :-( A more reliable approach would be to build one version of
the module suitable for SMP kernels and one suitable for UP kernels,
and have the startup script decide which to load (say, by looking at
/proc/cpuinfo).
--
Aaron M. Ucko, KB1CJC <amu at mit.edu> (finger amu at monk.mit.edu)
More information about the Arla-drinkers
mailing list