/shark/trunk/drivers/input/gameport/gameport.c |
---|
38,8 → 38,12 |
static LIST_HEAD(gameport_dev_list); |
#ifdef __i386__ |
/* !!! Added by Nino !!! */ |
extern TIME sys_gettime(struct timespec *t); |
#define GET_TIME(x) (x = sys_gettime(NULL)) |
#define DELTA(x,y) ((y)-(x)) |
#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0)) |
/*#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0)) |
#define GET_TIME(x) do { x = get_time_pit(); } while (0) |
static unsigned int get_time_pit(void) |
55,7 → 59,7 |
spin_unlock_irqrestore(&i8253_lock, flags); |
return count; |
} |
}*/ |
#endif |