]> 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>
Wed, 20 Mar 2013 04:22:54 +0000 (15:22 +1100)
commit6cdd33a36290320afdf4b23d1b6c536f1787355d
treea97d56b8c89d22feaf62b46b3d9330a7de9f19a5
parentd282d5e02fa46328ecd376990d6532c48b0a93c6
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