-/* $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 $ */
/*
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