Fixes preempt/indir tracing in lock_test
[akaros.git] / user / benchutil / alarm_dispatch.c
index 0ce7e97..56e417c 100644 (file)
@@ -40,7 +40,7 @@ static void init_alarm_dispatch()
        spin_pdr_init(&dispatch.lock);
        dispatch.handlers = NULL;
        dispatch.length = 0;
-       ev_handlers[EV_ALARM] = dispatch_alarm;
+       register_ev_handler(EV_ALARM, dispatch_alarm, 0);
 }
 
 /* Grow the handler array if necessary.  The array lock must be held when