All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] watchdog: add watchdog pretimeout framework
@ 2015-11-21  7:11 Vladimir Zapolskiy
  2015-11-21  7:11 ` [PATCH 1/6] " Vladimir Zapolskiy
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Vladimir Zapolskiy @ 2015-11-21  7:11 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck; +Cc: linux-watchdog

The change adds a simple watchdog pretimeout framework infrastructure,
its purpose is to allow users to select a desired handling of watchdog
pretimeout events, which may be generated by a watchdog driver.

The idea of adding this kind of a framework appeared after reviewing
several attempts to add hardcoded pretimeout event handling to some
watchdog driver and after a discussion with Guenter, see
https://lkml.org/lkml/2015/11/4/346

By design every watchdog pretimeout governor may be compiled as a
kernel module, a user selects a default watchdog pretimeout
governor during compilation stage and can select another governor in
runtime.

Watchdogs with WDIOF_PRETIMEOUT capability now have two device
attributes in sysfs: read/write pretimeout_governor attribute and read
only pretimeout_available_governors attribute.

To throw a pretimeout event for further processing a watchdog driver
should call exported  watchdog_notify_pretimeout(wdd) interface.

In addition to the framework a number of simple watchdog pretimeout
governors are added for review.

Vladimir Zapolskiy (6):
  watchdog: add watchdog pretimeout framework
  watchdog: pretimeout: add noop pretimeout governor
  watchdog: pretimeout: add panic pretimeout governor
  watchdog: pretimeout: add userspace notifier pretimeout governor
  watchdog: pretimeout: add device specific notifier pretimeout governor
  watchdog: pretimeout: add ping pretimeout governor

 drivers/watchdog/Kconfig                |  91 +++++++++
 drivers/watchdog/Makefile               |  10 +-
 drivers/watchdog/pretimeout_device.c    |  49 +++++
 drivers/watchdog/pretimeout_noop.c      |  49 +++++
 drivers/watchdog/pretimeout_panic.c     |  49 +++++
 drivers/watchdog/pretimeout_ping.c      |  48 +++++
 drivers/watchdog/pretimeout_userspace.c |  49 +++++
 drivers/watchdog/watchdog_core.c        |  14 +-
 drivers/watchdog/watchdog_pretimeout.c  | 348 ++++++++++++++++++++++++++++++++
 drivers/watchdog/watchdog_pretimeout.h  |  31 +++
 include/linux/watchdog.h                |  12 ++
 11 files changed, 747 insertions(+), 3 deletions(-)
 create mode 100644 drivers/watchdog/pretimeout_device.c
 create mode 100644 drivers/watchdog/pretimeout_noop.c
 create mode 100644 drivers/watchdog/pretimeout_panic.c
 create mode 100644 drivers/watchdog/pretimeout_ping.c
 create mode 100644 drivers/watchdog/pretimeout_userspace.c
 create mode 100644 drivers/watchdog/watchdog_pretimeout.c
 create mode 100644 drivers/watchdog/watchdog_pretimeout.h

-- 
2.5.0

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

end of thread, other threads:[~2015-11-24 13:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-21  7:11 [PATCH 0/6] watchdog: add watchdog pretimeout framework Vladimir Zapolskiy
2015-11-21  7:11 ` [PATCH 1/6] " Vladimir Zapolskiy
2015-11-21  7:11 ` [PATCH 2/6] watchdog: pretimeout: add noop pretimeout governor Vladimir Zapolskiy
2015-11-21  7:11 ` [PATCH 3/6] watchdog: pretimeout: add panic " Vladimir Zapolskiy
2015-11-21  7:11 ` [PATCH 4/6] watchdog: pretimeout: add userspace notifier " Vladimir Zapolskiy
2015-11-21  7:11 ` [PATCH 5/6] watchdog: pretimeout: add device specific " Vladimir Zapolskiy
2015-11-24  6:37   ` Guenter Roeck
2015-11-24 13:25     ` Vladimir Zapolskiy
2015-11-24 13:50       ` Guenter Roeck
2015-11-21  7:11 ` [PATCH 6/6] watchdog: pretimeout: add ping watchdog " Vladimir Zapolskiy
2015-11-24  6:36   ` Guenter Roeck
2015-11-24 13:27     ` Vladimir Zapolskiy
2015-11-21 17:13 ` [PATCH 0/6] watchdog: add watchdog pretimeout framework Guenter Roeck
2015-11-23  0:38   ` Vladimir Zapolskiy
2015-11-24  6:47     ` Guenter Roeck
2015-11-24 13:25       ` Vladimir Zapolskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.