diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2006-07-10 16:11:09 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2006-07-10 16:11:09 +0000 |
commit | 97f33a842e2de2d39a07232de8748511c46b31b9 (patch) | |
tree | d1a6a5804dddd8ae371b56814b972ab942d0a5e0 /sys/arch | |
parent | c83404099ee6c7d236834e51569da2fd68182c51 (diff) |
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.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/xscale/i80321_clock.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 <drahn@openbsd.org> @@ -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; |