Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 164 → Rev 165

/shark/trunk/oslib/kl/advtimer.c
123,6 → 123,8
#define CALIBRATE_LATCH (5 * LATCH)
#define CALIBRATE_TIME (5 * 1000020/HZ)
 
#define COUNTER_END 50
 
//TSC Calibration (idea from the linux kernel code)
void ll_calibrate_tsc(void)
{
153,7 → 155,7
end_8253 = inp(0x42);
end_8253 |= inp(0x42) << 8;
 
} while (end_8253 > 10);
} while (end_8253 > COUNTER_END);
rdtscll(end);
outp(0x43,0x00);