| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: Don't place cu2 notifiers in __cpuinitdata |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Thu, 23 Sep 2010 11:23:29 -0700 |
| Cc: | David Daney <ddaney@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
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>
---
arch/mips/include/asm/cop2.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/include/asm/cop2.h b/arch/mips/include/asm/cop2.h
index 2cb2f0c..3532e2c 100644
--- a/arch/mips/include/asm/cop2.h
+++ b/arch/mips/include/asm/cop2.h
@@ -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 \
}; \
--
1.7.2.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] MIPS: Make EARLY_PRINTK selectable for !EMBEDDED, wu zhangjin |
|---|---|
| Next by Date: | [PATCH] MIPS: Octeon: Place cnmips_cu2_setup in __init memory., David Daney |
| Previous by Thread: | [PATCH 10/20] mips: change to new flag variable, matt mooney |
| Next by Thread: | [PATCH] MIPS: Octeon: Place cnmips_cu2_setup in __init memory., David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |