mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
MIPS: Octeon: Simplify hotcpu_notifier registration.
Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1490/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
edfcbb8cac
commit
442f201286
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user