i read the /dev/rtc (Realtime clock) driver, mutated it and wrote my own little module, that get's called 8192 times per second via SA_INTERRUPT (highest possible priority) IRQ 8. ok. if harddisk interrupts occur, some timer interrupts get lost. this is also mentioned in the original rtc driver. this happens, because cli is "active" too long. WHY doesn't the harddisk driver do a sti() as early as possible ???
i don't think this is good code.