2 #include "../port/lib.h"
9 static ulong clkreload;
31 /* XXX this should not be hard coded! */
35 m->dechz = m->bushz/4; /* true for all 604e */
36 m->tbhz = m->dechz; /* conjecture; manual doesn't say */
40 clkreload = m->dechz/HZ-1;
52 m->ticks += v/clkreload;
86 for(i = 0; i < l; i++)
101 return fastticks2us(m->ticks);
105 * performance measurement ticks. must be low overhead.
106 * doesn't have to count over a second.