linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: allow notsc option for buggy cpus
@ 2001-03-10  0:58 Anton Blanchard
  2001-03-10  1:19 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: Anton Blanchard @ 2001-03-10  0:58 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-03-12 15:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-10  0:58 [PATCH]: allow notsc option for buggy cpus Anton Blanchard
2001-03-10  1:19 ` Alan Cox
2001-03-10  2:09   ` David Huggins-Daines
2001-03-10 11:36     ` Alan Cox
2001-03-12 15:21       ` Jes Sorensen
2001-03-10 20:21   ` Matti Aarnio
2001-03-10 20:28     ` Alan Cox
2001-03-11 14:38   ` Anton Blanchard
2001-03-11 14:49     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).