diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2010-02-27 17:02:51 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-04-12 16:26:12 (GMT) |
commit | 52553664033078102f5f430c861ccd0863b1b708 (patch) | |
tree | ccb96c5760a18a66610c2205cb6c62dc16ce2792 /arch | |
parent | d5d3102b9adec0a34eb5899324b62a4a3d34183e (diff) | |
download | linux-52553664033078102f5f430c861ccd0863b1b708.tar.xz |
MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0).
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1008/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/smtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 25e825a..a95dea5 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c @@ -182,7 +182,7 @@ static int vpemask[2][8] = { {0, 0, 0, 0, 0, 0, 0, 1} }; int tcnoprog[NR_CPUS]; -static atomic_t idle_hook_initialized = {0}; +static atomic_t idle_hook_initialized = ATOMIC_INIT(0); static int clock_hang_reported[NR_CPUS]; #endif /* CONFIG_SMTC_IDLE_HOOK_DEBUG */ |