]> 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>
Wed, 20 Mar 2013 04:07:31 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:56 +0000 (16:33 +1100)
commite21cdba8d7e81922bdc2471c44702a8706d80af3
tree7e378eb091387fb65e064ecda54b522964e7459c
parenta487d76dbb817285f794df792a47d08892906d8c
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