Re: TSCs are a no-no on i386

From: Jan-Benedict Glaw (jbglaw@lug-owl.de)
Date: Wed Jul 30 2003 - 09:44:29 EST


On Wed, 2003-07-30 16:18:11 +0200, Maciej W. Rozycki <macro@ds2.pg.gda.pl>
wrote in message <Pine.GSO.3.96.1030730161309.911E-100000@delta.ds2.pg.gda.pl>:
> On Wed, 30 Jul 2003, Jan-Benedict Glaw wrote:
> > This small patch fixes a long-standing problem for bare i386 CPUs. These
> > don't have TSCs and so, a recent 2.4.x kernel will simply halt the
>
> Actually i486 processors and some Pentium-like clones have none, too.

Ah, I didn't know that. Here's the updated patch:

--- linux-2.4.22-pre9/arch/i386/config.in.orig 2003-07-30 16:38:03.000000000 +0200
+++ linux-2.4.22-pre9/arch/i386/config.in 2003-07-30 16:39:20.000000000 +0200
@@ -56,6 +56,7 @@
    define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM n
    define_bool CONFIG_X86_PPRO_FENCE y
    define_bool CONFIG_X86_F00F_WORKS_OK n
+ define_bool CONFIG_X86_HAS_TSC n
 else
    define_bool CONFIG_X86_WP_WORKS_OK y
    define_bool CONFIG_X86_INVLPG y
@@ -72,6 +73,7 @@
    define_bool CONFIG_X86_ALIGNMENT_16 y
    define_bool CONFIG_X86_PPRO_FENCE y
    define_bool CONFIG_X86_F00F_WORKS_OK n
+ define_bool CONFIG_X86_HAS_TSC n
 fi
 if [ "$CONFIG_M586" = "y" ]; then
    define_int CONFIG_X86_L1_CACHE_SHIFT 5
@@ -79,6 +81,7 @@
    define_bool CONFIG_X86_ALIGNMENT_16 y
    define_bool CONFIG_X86_PPRO_FENCE y
    define_bool CONFIG_X86_F00F_WORKS_OK n
+ define_bool CONFIG_X86_HAS_TSC n
 fi
 if [ "$CONFIG_M586TSC" = "y" ]; then
    define_int CONFIG_X86_L1_CACHE_SHIFT 5

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
      ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));


- 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 : Thu Jul 31 2003 - 22:00:45 EST