summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2010-02-27 20:02:51 +0300
committerRalf Baechle <ralf@linux-mips.org>2010-04-12 20:26:12 +0400
commit52553664033078102f5f430c861ccd0863b1b708 (patch)
treeccb96c5760a18a66610c2205cb6c62dc16ce2792 /arch
parentd5d3102b9adec0a34eb5899324b62a4a3d34183e (diff)
downloadlinux-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c
index 25e825aea327..a95dea5459c4 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 */