Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 071bf69a authored by Shuah Khan's avatar Shuah Khan
Browse files

samples: move watchdog example code from Documentation



Move watchdog examples to samples and remove it from Documentation
Makefile. Create a new Makefile to build watchdog. It can be built
from top level directory or from watchdog directory:

Run make -C samples/watchdog or cd samples/watchdog; make

Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 155fe001
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
subdir-y := accounting auxdisplay blackfin \
	laptops pcmcia watchdog
	laptops pcmcia

Documentation/watchdog/Makefile

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
subdir-y := src
+0 −5
Original line number Diff line number Diff line
# List of programs to build
hostprogs-y := watchdog-simple

# Tell kbuild to always build the programs
always := $(hostprogs-y)
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ activates as soon as /dev/watchdog is opened and will reboot unless
the watchdog is pinged within a certain time, this time is called the
timeout or margin.  The simplest way to ping the watchdog is to write
some data to the device.  So a very simple watchdog daemon would look
like this source file:  see Documentation/watchdog/src/watchdog-simple.c
like this source file:  see samples/watchdog/watchdog-simple.c

A more advanced driver could for example check that a HTTP server is
still responding before doing the write call to ping the watchdog.
+1 −1
Original line number Diff line number Diff line
@@ -47,4 +47,4 @@ The external event interfaces on the WDT boards are not currently supported.
Minor numbers are however allocated for it.


Example Watchdog Driver:  see Documentation/watchdog/src/watchdog-simple.c
Example Watchdog Driver:  see samples/watchdog/watchdog-simple.c
Loading