Skip to content

Commit

Permalink
MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0).
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <[email protected]>
To: [email protected]
Patchwork: http://patchwork.linux-mips.org/patch/1008/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
rpjday authored and ralfbaechle committed Apr 12, 2010
1 parent d5d3102 commit 5255366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5255366

Please sign in to comment.