diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-07-30 05:33:26 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 16:41:45 (GMT) |
commit | d667b6ddbcdc036a27407c8b2c1243f1dfd69e26 (patch) | |
tree | 4c43d584afd7cd5b83d914ae3f4fd364b6c2da91 /drivers/watchdog/hpwdt.c | |
parent | 26c131c71e31973e273adde4027e6a80bde164dc (diff) | |
download | linux-d667b6ddbcdc036a27407c8b2c1243f1dfd69e26.tar.xz |
hpwdt: don't use static flags
Static (read: global) is potential problem. Two threads can corrupt each
other's interrupt status, better avoid this.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Thomas Mingarelli <thomas.mingarelli@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/watchdog/hpwdt.c')
-rw-r--r-- | drivers/watchdog/hpwdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index eaa3f2a..ccd6c53 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -420,7 +420,7 @@ static int __devinit detect_cru_service(void) static int hpwdt_pretimeout(struct notifier_block *nb, unsigned long ulReason, void *data) { - static unsigned long rom_pl; + unsigned long rom_pl; static int die_nmi_called; if (ulReason != DIE_NMI && ulReason != DIE_NMI_IPI) |