Commit f3ebee56 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka
Browse files

ipipe: timer: resume hardware operations in oneshot handler

Although we won't allow disabling the hardware when the clock event
logic switches a device to stopped mode - so that we won't affect the
timer logic running on the head stage unexpectedly -, we still have to
enable the hardware when switched (back) to oneshot mode, since it may
have been stopped prior to interposing on the device in

Failing to do so would leave the hardware shut down for both regular
and Xenomai operations, with no mean to bring it up again.
parent d9e0cff6
......@@ -365,6 +365,7 @@ static int do_set_oneshot(struct clock_event_device *cdev)
struct ipipe_timer *timer = __ipipe_raw_cpu_read(percpu_timer);
timer->mode_handler(CLOCK_EVT_MODE_ONESHOT, cdev);
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment