summaryrefslogtreecommitdiff
path: root/sys/arch/arm/cortex
diff options
context:
space:
mode:
authorRaphael Graf <rapha@cvs.openbsd.org>2013-08-08 10:07:23 +0000
committerRaphael Graf <rapha@cvs.openbsd.org>2013-08-08 10:07:23 +0000
commitaf8c5b8930b4ac67fabfbfe024cb75bccd2848e7 (patch)
treeda16571c5aad5b606b757a8dc12042cd781ab208 /sys/arch/arm/cortex
parent58b9b6cd0ada826a1d88b54d2d0ab6675d9ffe2c (diff)
Remove duplicate loop.
ok patrick@
Diffstat (limited to 'sys/arch/arm/cortex')
-rw-r--r--sys/arch/arm/cortex/amptimer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arch/arm/cortex/amptimer.c b/sys/arch/arm/cortex/amptimer.c
index 6c2a3f635a6..af21fa294fb 100644
--- a/sys/arch/arm/cortex/amptimer.c
+++ b/sys/arch/arm/cortex/amptimer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amptimer.c,v 1.3 2013/08/06 14:20:15 patrick Exp $ */
+/* $OpenBSD: amptimer.c,v 1.4 2013/08/08 10:07:22 rapha Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
@@ -247,11 +247,6 @@ amptimer_intr(void *frame)
while (pc->pc_nexttickevent <= now) {
pc->pc_nexttickevent += sc->sc_ticks_per_intr;
pc->pc_ticks_err_sum += sc->sc_ticks_err_cnt;
- /* looping a few times is faster than divide */
- while (pc->pc_ticks_err_sum > hz) {
- pc->pc_nexttickevent += 1;
- pc->pc_ticks_err_sum -= hz;
- }
/* looping a few times is faster than divide */
while (pc->pc_ticks_err_sum > hz) {