Re: How to Determine Which Kernel

From: Quang Nguyêñ (formerly Ngô) (quang@tapeware.com)
Date: Fri Mar 31 2000 - 18:37:30 EST

  • Next message: Jesse Pollard: "Re: Really Simple File System versus raw disk I/O"

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

    --
    Quang
    

    - 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 - 18:51:25 EST