1 This path contains the following (from the ac patch):
5 --- linux.org/arch/i386/kernel/time.c.orig Sat Jun 2 16:06:59 2001
6 +++ linux/arch/i386/kernel/time.c Sat Jun 2 16:07:20 2001
10 count |= inb_p(0x40) << 8;
12 + /* VIA686a test code... reset the latch if count > max + 1 */
13 + if (count > LATCH) {
15 + outb_p(LATCH & 0xff, 0x40);
16 + outb(LATCH >> 8, 0x40);
20 spin_unlock(&i8253_lock);
25 count = inb_p(0x40); /* read the latched count */
26 count |= inb(0x40) << 8;
29 + /* VIA686a test code... reset the latch if count > max */
30 + if (count > LATCH-1) {
31 + static int last_whine;
33 + outb_p(LATCH & 0xff, 0x40);
34 + outb(LATCH >> 8, 0x40);
36 + if(time_after(jiffies, last_whine))
38 + printk(KERN_WARNING "probable hardware bug: clock timer configuration lost - probably a VIA686a motherboard.\n");
39 + printk(KERN_WARNING "probable hardware bug: restoring chip configuration.\n");
40 + last_whine = jiffies + HZ;
45 spin_unlock(&i8253_lock);
47 count = ((LATCH-1) - count) * TICK_SIZE;