mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
[PATCH] i386: pit_latch_buggy has no effect
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> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
9215da3320
commit
f5e8861583
3 changed files with 1 additions and 5 deletions
|
@ -279,7 +279,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
|
||||||
*/
|
*/
|
||||||
if (vendor == PCI_VENDOR_ID_CYRIX &&
|
if (vendor == PCI_VENDOR_ID_CYRIX &&
|
||||||
(device == PCI_DEVICE_ID_CYRIX_5510 || device == PCI_DEVICE_ID_CYRIX_5520))
|
(device == PCI_DEVICE_ID_CYRIX_5510 || device == PCI_DEVICE_ID_CYRIX_5520))
|
||||||
pit_latch_buggy = 1;
|
mark_tsc_unstable();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
c->x86_cache_size=16; /* Yep 16K integrated cache thats it */
|
c->x86_cache_size=16; /* Yep 16K integrated cache thats it */
|
||||||
|
|
|
@ -70,8 +70,6 @@
|
||||||
|
|
||||||
#include <asm/i8259.h>
|
#include <asm/i8259.h>
|
||||||
|
|
||||||
int pit_latch_buggy; /* extern */
|
|
||||||
|
|
||||||
#include "do_timer.h"
|
#include "do_timer.h"
|
||||||
|
|
||||||
unsigned int cpu_khz; /* Detected as we calibrate the TSC */
|
unsigned int cpu_khz; /* Detected as we calibrate the TSC */
|
||||||
|
|
|
@ -9,8 +9,6 @@ void setup_pit_timer(void);
|
||||||
unsigned long long native_sched_clock(void);
|
unsigned long long native_sched_clock(void);
|
||||||
unsigned long native_calculate_cpu_khz(void);
|
unsigned long native_calculate_cpu_khz(void);
|
||||||
|
|
||||||
/* Modifiers for buggy PIT handling */
|
|
||||||
extern int pit_latch_buggy;
|
|
||||||
extern int timer_ack;
|
extern int timer_ack;
|
||||||
extern int no_timer_check;
|
extern int no_timer_check;
|
||||||
extern int no_sync_cmos_clock;
|
extern int no_sync_cmos_clock;
|
||||||
|
|
Loading…
Reference in a new issue