projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edfcbb8
)
MIPS: Octeon: Simplify hotcpu_notifier registration.
author
David Daney
<
[email protected]
>
Fri, 23 Jul 2010 17:57:50 +0000
(10:57 -0700)
committer
Ralf Baechle
<
[email protected]
>
Thu, 5 Aug 2010 12:26:11 +0000
(13:26 +0100)
Signed-off-by: David Daney <
[email protected]
>
To:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1490/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/cavium-octeon/smp.c
patch
|
blob
|
history
diff --git
a/arch/mips/cavium-octeon/smp.c
b/arch/mips/cavium-octeon/smp.c
index 8ff2c7b41defdb45dd35ef6c77aae991a6d15db6..ceb76496e6ad5425106b4a202c31a990baf2f10e 100644
(file)
--- a/
arch/mips/cavium-octeon/smp.c
+++ b/
arch/mips/cavium-octeon/smp.c
@@
-428,17
+428,11
@@
static int __cpuinit octeon_cpu_callback(struct notifier_block *nfb,
return NOTIFY_OK;
}
-static struct notifier_block __cpuinitdata octeon_cpu_notifier = {
- .notifier_call = octeon_cpu_callback,
-};
-
static int __cpuinit register_cavium_notifier(void)
{
- register_hotcpu_notifier(&octeon_cpu_notifier);
-
+ hotcpu_notifier(octeon_cpu_callback, 0);
return 0;
}
-
late_initcall(register_cavium_notifier);
#endif /* CONFIG_HOTPLUG_CPU */