diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-07-30 07:33:26 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 18:41:45 +0200 |
commit | d667b6ddbcdc036a27407c8b2c1243f1dfd69e26 (patch) | |
tree | 4c43d584afd7cd5b83d914ae3f4fd364b6c2da91 /drivers/watchdog/hpwdt.c | |
parent | iscsi_ibft_find: fix modpost warning (diff) | |
download | linux-d667b6ddbcdc036a27407c8b2c1243f1dfd69e26.tar.xz linux-d667b6ddbcdc036a27407c8b2c1243f1dfd69e26.zip |
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 eaa3f2a79ff5..ccd6c530782d 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) |