Skip to content

Commit

Permalink
MIPS: Don't place cu2 notifiers in __cpuinitdata
Browse files Browse the repository at this point in the history
The notifiers may be called at any time, so the notifier_block cannot
be in init memory.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1592/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
David Daney authored and Ralf Baechle committed Oct 4, 2010
1 parent 2ccc5b1 commit 4c7106c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/include/asm/cop2.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern int cu2_notifier_call_chain(unsigned long val, void *v);

#define cu2_notifier(fn, pri) \
({ \
static struct notifier_block fn##_nb __cpuinitdata = { \
static struct notifier_block fn##_nb = { \
.notifier_call = fn, \
.priority = pri \
}; \
Expand Down

0 comments on commit 4c7106c

Please sign in to comment.