clockevent driver as source for pretimout watchdog interrupt
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · fixed-term.Oleksij.Rempel
i'm doing research on proper implementation for watchdog pretimout interrupt for devices which do not provide this functionality.
Some watchdog controllers like Freescale iMX6 can generate an interrupt for some configured time before watchdog will reset the system. Suddenly most watchdog controllers don't have this functionality.
My idea is to reuse some count down (one shot?) timer:
- configure it to generate an interrupt for a time less then watchdog deadline.
- reset it each time we get a ping, before an interrupt is generated.
- interrupt should executed one of governors from pretimout patchset, see the link:
https://www.mail-archive.com/[email protected]/msg02394.html
Quoted 3 lines
I assume clocksource framework is kind of suitable for this purpose? Is it correct assumption?
Any other ideas? Suggestions?
What's wrong with simply using a hrtimer for this? The extra clockevent is not buying you anything AFAICT.
Thanks,
tglx