summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/macppc/macppc/clock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/clock.c b/sys/arch/macppc/macppc/clock.c
index 18b2522a3d1..cbffc4a1d72 100644
--- a/sys/arch/macppc/macppc/clock.c
+++ b/sys/arch/macppc/macppc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.53 2023/02/04 19:19:36 cheloha Exp $ */
+/* $OpenBSD: clock.c,v 1.54 2023/02/04 23:17:05 cheloha Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
@@ -247,16 +247,13 @@ void
dec_rearm(void *unused, uint64_t nsecs)
{
uint32_t cycles;
- int s;
if (nsecs > dec_nsec_max)
nsecs = dec_nsec_max;
cycles = (nsecs * dec_nsec_cycle_ratio) >> 32;
if (cycles > UINT32_MAX >> 1)
cycles = UINT32_MAX >> 1;
- s = ppc_intr_disable();
ppc_mtdec(cycles);
- ppc_intr_enable(s);
}
void