Re: How to Determine Which Kernel

From: Ben Collins (bcollins@debian.org)
Date: Fri Mar 31 2000 - 18:46:40 EST


On Fri, Mar 31, 2000 at 03:37:30PM -0800, Quang Nguyêñ 28formerly Ngô29 wrote:
> > My configuration file for building drivers does:
> >
> > echo "Checking for SMP capability"
> > if uname -v | egrep SMP>/dev/null; then
> > echo "CFLAGS += -D__SMP__" >>.config
> > echo "This machine has SMP capability"
> > else
> > echo "This machine is not SMP capable"
> > fi
> >
> > It works for me. Standard discalimer, 30 m or 30 s.
> >
> >
> > Cheers,
> > Dick Johnson
>
> I found one problem.... Just look for apic_reg in /proc/ksyms. If it's
> present then the kernel is SMP. This is true for 2.0.x kernel... and that's
> all I wanted to know.

Not true I believe. i386 can have apic enabled, even on UP systems. Not
sure if that symbol is still there, but it would seem to make sense.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  --  bcollins@openldap.org  --  bmc@visi.net     '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:30 EST