Skip to content

Commit

Permalink
samples: move watchdog example code from Documentation
Browse files Browse the repository at this point in the history
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: Jonathan Corbet <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
Shuah Khan committed Sep 23, 2016
1 parent 155fe00 commit 071bf69
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
subdir-y := accounting auxdisplay blackfin \
laptops pcmcia watchdog
laptops pcmcia
1 change: 0 additions & 1 deletion Documentation/watchdog/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions Documentation/watchdog/src/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/watchdog/watchdog-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/watchdog/wdt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
8 changes: 8 additions & 0 deletions samples/watchdog/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CC := $(CROSS_COMPILE)gcc
PROGS := watchdog-simple

all: $(PROGS)

clean:
rm -fr $(PROGS)

File renamed without changes.

0 comments on commit 071bf69

Please sign in to comment.