linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] watchdog: pretimeout: userspace governor
@ 2016-05-25 13:47 Wolfram Sang
  2016-05-25 13:47 ` [RFC 1/2] watchdog: dev: add helper for creating uevent on dev Wolfram Sang
  2016-05-25 13:47 ` [RFC 2/2] watchdog: pretimeout: add userspace notifier pretimeout governor Wolfram Sang
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-05-25 13:47 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Wolfram Sang, linux-renesas-soc, Guenter Roeck,
	Vladimir Zapolskiy

So, here is the RFC series implementing the userspace governor. This is merely
meant as a proof-of-concept, so my patch series will have the same capabilities
as Vladimir's series. It does work (for me (tm)) and shows how the bottom half
handling can be better put to the watchdog device code, making the pretimeout
code a lot simpler.

However, I am not sure if a uevent on the watchdog device is a good userspace
notification. Setting the governor is done vis sysfs, okay. But setting the
pretimeout is done via the character device, so I wonder if the response
shouldn't go there as well? But do we want to introduce select/poll support
only for pretimeouts?

Other ideas?

Thanks,

   Wolfram

Vladimir Zapolskiy (1):
  watchdog: pretimeout: add userspace notifier pretimeout governor

Wolfram Sang (1):
  watchdog: dev: add helper for creating uevent on dev

 drivers/watchdog/Kconfig                | 16 +++++++++++
 drivers/watchdog/Makefile               |  1 +
 drivers/watchdog/pretimeout_userspace.c | 47 +++++++++++++++++++++++++++++++++
 drivers/watchdog/watchdog_dev.c         | 20 ++++++++++++++
 drivers/watchdog/watchdog_pretimeout.h  |  2 ++
 include/linux/watchdog.h                |  3 +++
 6 files changed, 89 insertions(+)
 create mode 100644 drivers/watchdog/pretimeout_userspace.c

-- 
2.8.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-25 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-25 13:47 [RFC 0/2] watchdog: pretimeout: userspace governor Wolfram Sang
2016-05-25 13:47 ` [RFC 1/2] watchdog: dev: add helper for creating uevent on dev Wolfram Sang
2016-05-25 13:47 ` [RFC 2/2] watchdog: pretimeout: add userspace notifier pretimeout governor Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).