]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/watchdog.c: add comments to explain watchdog_disabled variable
authoranish kumar <anish198519851985@gmail.com>
Tue, 26 Mar 2013 23:24:50 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Apr 2013 07:29:15 +0000 (18:29 +1100)
commitb8e879f04cfe41082c2917812f1ce22d220d27c5
tree9a1712f9a7c138d60feaa11f248131b647603ade
parent17f5bc069b5543f3ecaad1bdf00237c288ba72d8
kernel/watchdog.c: add comments to explain watchdog_disabled variable

This watchdog_disabled flag is a bit cryptic.  However it's usefulness is
multifold.  Uses are:

1. Check if smpboot_register_percpu_thread function passed.
2. Makes sure that user enables and disables the watchdog in sequence
   i.e. enable watchdog->disable watchdog->enable watchdog
   Unlike enable watchdog->enable watchdog which is wrong.

[dzickus@redhat.com: small text cleanups]
Signed-off-by: anish kumar <anish198519851985@gmail.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/watchdog.c