lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 7755d6b2 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/cpu hotplug: use hotcpu_notifier() instead of register_cpu_notifier()

Saves a couple of lines of code.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent bdd1fc27
...@@ -972,10 +972,6 @@ static int __cpuinit smp_cpu_notify(struct notifier_block *self, ...@@ -972,10 +972,6 @@ static int __cpuinit smp_cpu_notify(struct notifier_block *self,
return notifier_from_errno(err); return notifier_from_errno(err);
} }
static struct notifier_block __cpuinitdata smp_cpu_nb = {
.notifier_call = smp_cpu_notify,
};
static int __devinit smp_add_present_cpu(int cpu) static int __devinit smp_add_present_cpu(int cpu)
{ {
struct cpu *c = &pcpu_devices[cpu].cpu; struct cpu *c = &pcpu_devices[cpu].cpu;
...@@ -1050,7 +1046,7 @@ static int __init s390_smp_init(void) ...@@ -1050,7 +1046,7 @@ static int __init s390_smp_init(void)
{ {
int cpu, rc; int cpu, rc;
register_cpu_notifier(&smp_cpu_nb); hotcpu_notifier(smp_cpu_notify, 0);
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
rc = device_create_file(cpu_subsys.dev_root, &dev_attr_rescan); rc = device_create_file(cpu_subsys.dev_root, &dev_attr_rescan);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment