MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0).

Previous thread: MIPS: Lemote 2F: Ensure atomic execution of _rdmsr and _wrmsr by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)

Next thread: MIPS: Loongson: Add module info to the loongson2_clock driver by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, April 12, 2010 - 7:59 pm

Gitweb:     http://git.kernel.org/linus/52553664033078102f5f430c861ccd0863b1b708
Commit:     52553664033078102f5f430c861ccd0863b1b708
Parent:     d5d3102b9adec0a34eb5899324b62a4a3d34183e
Author:     Robert P. J. Day <rpjday@crashcourse.ca>
AuthorDate: Sat Feb 27 12:02:51 2010 -0500
Committer:  Ralf Baechle <ralf@linux-mips.org>
CommitDate: Mon Apr 12 17:26:12 2010 +0100

    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>
---
 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 */
--

Previous thread: MIPS: Lemote 2F: Ensure atomic execution of _rdmsr and _wrmsr by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)

Next thread: MIPS: Loongson: Add module info to the loongson2_clock driver by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)