On Mon, 6 Jul 2015, Thomas Gleixner wrote:
On Mon, 6 Jul 2015, Sudeep Holla wrote:
This triggered the below crash on boot, looks like it's accessing
hrtimer->function which is null in periodic mode IIUC
Regards,
Sudeep
Gah. I have no idea how that gets queued. /me goes off to tweak x86 to
emulate that crap.
So with a less heat damaged brain, I think I was able to decode the
twisted logic behind all this.
Can you test the patch below please?
{
Index: tip/kernel/time/tick-broadcast.c
===================================================================
--- tip.orig/kernel/time/tick-broadcast.c
+++ tip/kernel/time/tick-broadcast.c
@@ -938,6 +972,16 @@ bool tick_broadcast_oneshot_available(vo
return bc ? bc->features & CLOCK_EVT_FEAT_ONESHOT : false;
}
+#else
+int __tick_broadcast_oneshot_control(enum tick_broadcast_state state)
+{
+ struct clock_event_device *bc = tick_broadcast_device.evtdev;
+
+ if (!bc || (bc->features & CLOCK_EVT_FEAT_HRTIMER)