211,6 → 211,8 |
BYTE mask; |
TIME t; |
|
if (use_tsc) ll_init_advtimer(); |
|
IDT_place(0x40,ll_timer); |
|
if (l->mode != LL_PERIODIC) { |
228,8 → 230,8 |
/* Time-Constant = f_base (MHz) * tick (usec) */ |
/* If T-C == 0 -> T-C = 65536 (Max available) */ |
ticksize = t; |
t = t * 1197; |
t = t / 1000; |
t = (signed long long)(t) * 1193182 / 1000000; |
|
/* Only for security! This should cause timer overrun */ |
/* While 0 would set maximum period on timer */ |
if (t == 0) |
274,8 → 276,6 |
nts = ticksize * 1000; |
NULL_TIMESPEC(&actTime); |
|
if (use_tsc) ll_init_advtimer(); |
|
/* Initialization of the general time variables */ |
NULLPITSPEC(&globalCounter); |
lastTime = 0; |