Re: How to Determine Which Kernel

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Mar 31 2000 - 17:38:15 EST

  • Next message: Vojtech Pavlik: "Re: Timestamp counters on SMP"

    On Fri, 31 Mar 2000, Tim Waugh wrote:

    > On Fri, 31 Mar 2000, [iso-8859-1] Quang Nguyêñ (formerly Ngô) wrote:
    >
    > > This works fine with kernel 2.2. However, under 2.0.x, there is no
    > > SMP string. I'm writing a driver and want to support 2.0 as well.
    >
    > If you're writing a driver then you need to know at _compile_ time, not
    > _runtime_, or it'll all go to hell.
    >
    > Tim.
    > */
    >

    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

    Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

    -
    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 - 17:45:33 EST