~kris/9p

9hist

60375cd1e4507db3103f22017d0897a7294d3629 — David du Colombier 25 years ago e9931ca
Plan 9 from Bell Labs 2001-06-11
1 files changed, 9 insertions(+), 0 deletions(-)

M pc/i8253.c
M pc/i8253.c => pc/i8253.c +9 -0
@@ 235,6 235,15 @@ clockintr0(Ureg* ureg, void *v)

	now = fastticks(nil);
	when = i8253.when;

	/*
	 * If we suspend the machine and resume, the
	 * processor cycle counter gets reset.  Detect this
	 * and deal with it.
	 */
	if(now < i8253.when && i8253.when-now > 3*i8253.fastperiod)
		i8253.when = now;

	if(now >= i8253.when){
		clockintr(ureg, v);
		do