projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d3102
)
MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0).
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Sat, 27 Feb 2010 17:02:51 +0000
(12:02 -0500)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 12 Apr 2010 16:26:12 +0000
(17:26 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/smtc.c
b/arch/mips/kernel/smtc.c
index 25e825aea3270c29c08f1d0cfefd361af5ff3596..a95dea5459c4d5034514ae68a8134d3bb2eb578d 100644
(file)
--- 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 */