diff options
author | 2006-07-10 16:11:08 +0000 | |
---|---|---|
committer | 2006-07-10 16:11:08 +0000 | |
commit | 34be15bc557fcead54858c7de86cf39e98452ab2 (patch) | |
tree | 9d820551b98ef7d856fc70a1006827d3f5d252f1 | |
parent | s/and and/and/ (diff) | |
download | wireguard-openbsd-34be15bc557fcead54858c7de86cf39e98452ab2.tar.xz wireguard-openbsd-34be15bc557fcead54858c7de86cf39e98452ab2.zip |
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.
-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; |