From 97f33a842e2de2d39a07232de8748511c46b31b9 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 10 Jul 2006 16:11:09 +0000 Subject: Remove the error_cnt cacluation, this only makes sense when the supplied clock speed is extrememly accurate and not evenly divisible. Both of which is not true on armish. --- sys/arch/arm/xscale/i80321_clock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/arch/arm/xscale') diff --git a/sys/arch/arm/xscale/i80321_clock.c b/sys/arch/arm/xscale/i80321_clock.c index e5bf6b409db..9ff758228a8 100644 --- a/sys/arch/arm/xscale/i80321_clock.c +++ b/sys/arch/arm/xscale/i80321_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i80321_clock.c,v 1.2 2006/07/10 16:04:06 drahn Exp $ */ +/* $OpenBSD: i80321_clock.c,v 1.3 2006/07/10 16:11:08 drahn Exp $ */ /* * Copyright (c) 2006 Dale Rahn @@ -44,7 +44,6 @@ uint32_t nexttickevent; uint32_t ticks_per_intr; uint32_t ticks_per_second; uint32_t lastnow; -uint32_t stat_error_cnt, tick_error_cnt; uint32_t statvar, statmin; int i80321_timer_inited; @@ -257,7 +256,6 @@ cpu_initclocks() setstatclockrate(stathz); ticks_per_intr = ticks_per_second / hz; - tick_error_cnt = ticks_per_second % hz; printf("clock: hz= %d stathz = %d\n", hz, stathz); @@ -362,7 +360,6 @@ setstatclockrate(int newhz) s = splclock(); statint = ticks_per_second / newhz; - stat_error_cnt = ticks_per_second % stathz; /* calculate largest 2^n which is smaller that just over half statint */ statvar = 0x40000000; /* really big power of two */ minint = statint / 2 + 100; -- cgit v1.2.3