All of lore.kernel.org
 help / color / mirror / Atom feed
* + i386-pit_latch_buggy-has-no-effect.patch added to -mm tree
@ 2007-02-13  5:19 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-13  5:19 UTC (permalink / raw)
  To: mm-commits; +Cc: takada, ak


The patch titled
     i386: pit_latch_buggy has no effect
has been added to the -mm tree.  Its filename is
     i386-pit_latch_buggy-has-no-effect.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: i386: pit_latch_buggy has no effect
From: takada <takada@mbf.nifty.com>

Eliminated the arch/i386/kernel/timers in 2.6.18, use clocksoures instead. 
pit_latch_buggy was referred in timers/timer_tsc.c, and currently removed. 
Therefore nobody refer it.

Until 2.6.17, MediaGX's TSC works correctly.  after 2.6.18, warned "TSC
appears to be running slowly.  Marking it as unstable".  So marked unstable
TSC when CS55x0.

Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/i386/kernel/cpu/cyrix.c |    2 +-
 arch/i386/kernel/time.c      |    2 --
 include/asm-i386/timer.h     |    2 --
 3 files changed, 1 insertion(+), 5 deletions(-)

diff -puN arch/i386/kernel/cpu/cyrix.c~i386-pit_latch_buggy-has-no-effect arch/i386/kernel/cpu/cyrix.c
--- a/arch/i386/kernel/cpu/cyrix.c~i386-pit_latch_buggy-has-no-effect
+++ a/arch/i386/kernel/cpu/cyrix.c
@@ -278,7 +278,7 @@ static void __cpuinit init_cyrix(struct 
 		 *  The 5510/5520 companion chips have a funky PIT.
 		 */  
 		if (pci_dev_present(cyrix_55x0))
-			pit_latch_buggy = 1;
+			mark_tsc_unstable();
 #endif
 		c->x86_cache_size=16;	/* Yep 16K integrated cache thats it */
 
diff -puN arch/i386/kernel/time.c~i386-pit_latch_buggy-has-no-effect arch/i386/kernel/time.c
--- a/arch/i386/kernel/time.c~i386-pit_latch_buggy-has-no-effect
+++ a/arch/i386/kernel/time.c
@@ -70,8 +70,6 @@
 
 #include <asm/i8259.h>
 
-int pit_latch_buggy;              /* extern */
-
 #include "do_timer.h"
 
 unsigned int cpu_khz;	/* Detected as we calibrate the TSC */
diff -puN include/asm-i386/timer.h~i386-pit_latch_buggy-has-no-effect include/asm-i386/timer.h
--- a/include/asm-i386/timer.h~i386-pit_latch_buggy-has-no-effect
+++ a/include/asm-i386/timer.h
@@ -5,8 +5,6 @@
 
 #define TICK_SIZE (tick_nsec / 1000)
 void setup_pit_timer(void);
-/* Modifiers for buggy PIT handling */
-extern int pit_latch_buggy;
 extern int timer_ack;
 extern int no_timer_check;
 extern unsigned long long (*custom_sched_clock)(void);
_

Patches currently in -mm which might be from takada@mbf.nifty.com are

i386-pit_latch_buggy-has-no-effect.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-13  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13  5:19 + i386-pit_latch_buggy-has-no-effect.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.