Hi,
after detecting problems with the do_gettimeofday() function in
my interrupt handler on a 486 (no TSC), where sometimes this
functions returns a value in the past, the following patch made
it work again, it is against 2.4.3.
I noticed that the added outb_p() line is in for mips architechture
and in kernels 2.2 for i386, but not in any 2.4. Was it removed by
purpose ?
Armin
--- arch/i386/kernel/time.c_orig Mon Aug 6 12:06:53 2001
+++ arch/i386/kernel/time.c Mon Oct 22 08:04:29 2001
@@ -204,6 +206,7 @@
* This is tricky when I/O APICs are used;
* see do_timer_interrupt().
*/
+ outb_p(0x0A,0x20);
i = inb(0x20);
spin_unlock(&i8259A_lock);