[PATCH]: allow notsc option for buggy cpus

From: Anton Blanchard (anton@linuxcare.com.au)
Date: Fri Mar 09 2001 - 19:58:29 EST

  • Next message: Alexander Viro: "Re: (struct dentry *)->vfsmnt;"

    Hi,

    My IBM Thinkpad 600E changes between 100MHz and 400MHz depending if the
    power is on. This means gettimeofday goes backwards if you boot with the
    power out (tsc calibrated at 100MHz) and then plug the power in. (tsc is now
    spinning at 4x speed, so offsets within the HZ timer period are 4x out!).

    The answer is to boot with the notsc option, however since the
    CONFIG_X86_TSC option is enabled for CONFIG_M686, we cannot do this. Saving
    one indirect function call for do_gettimeofset is not enough of a reason for
    CONFIG_X86_TSC. Should we trash this option?

    Even so, we should really catch these cpus at run time.

    Anton

    --- linux/arch/i386/config.in Wed Jan 10 12:19:57 2001
    +++ linux_intel/arch/i386/config.in Fri Mar 9 07:59:39 2001
    @@ -80,7 +80,6 @@
     fi
     if [ "$CONFIG_M686" = "y" ]; then
        define_int CONFIG_X86_L1_CACHE_SHIFT 5
    - define_bool CONFIG_X86_TSC y
        define_bool CONFIG_X86_GOOD_APIC y
        define_bool CONFIG_X86_PGE y
        define_bool CONFIG_X86_USE_PPRO_CHECKSUM y

    # cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 6
    model name : Mobile Pentium II
    stepping : 10
    cache size : 256 KB
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
    bogomips : 104.44
    -
    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 : Fri Mar 09 2001 - 20:12:49 EST