Rewrote timer code.
The new code is based on timestamps, rather than delays. This eliminates the need to update every timer in timer_process(), which cost a non-trivial amount of CPU time on low-end machines. This involved changes to every user of the timer code, so this change almost certainly introduces bugs.
This commit is contained in:
parent
ab359ca9c5
commit
a7d006b637
79 changed files with 1050 additions and 1033 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define __IDE__
|
||||
|
||||
#include "device.h"
|
||||
#include "timer.h"
|
||||
|
||||
struct IDE;
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ extern void (*ide_bus_master_set_irq)(int channel);
|
|||
|
||||
extern int ideboard;
|
||||
|
||||
extern int idecallback[2];
|
||||
extern pc_timer_t ide_timer[2];
|
||||
|
||||
extern char ide_fn[7][512];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue