Skip to contentSkip to conversation

kernel-padatac-register-hotcpu-notifier-after-initialization.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013 Padata parallel execution mechanism

lore
Share & tools
lore
#0 lore raw

Subject: [merged] kernel-padatac-register-hotcpu-notifier-after-initialization.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:41:05 -0700

The patch titled
Subject: kernel/padata.c: register hotcpu notifier after initialization
has been removed from the -mm tree. Its filename was
kernel-padatac-register-hotcpu-notifier-after-initialization.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Richard Weinberger <[email protected]>
Subject: kernel/padata.c: register hotcpu notifier after initialization

padata_cpu_callback() takes pinst->lock, to avoid taking an uninitialized lock, register the notifier after it's initialization.

---

 kernel/padata.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
kernel/padata.c renamed from kernel/padata.c~kernel-padatac-register-hotcpu-notifier-after-initialization +0 -5
diff -puN kernel/padata.c~kernel-padatac-register-hotcpu-notifier-after-initialization kernel/padata.c
@@ -1086,18 +1086,18 @@ struct padata_instance *padata_alloc(str
 
 	pinst->flags = 0;
 
-#ifdef CONFIG_HOTPLUG_CPU
-	pinst->cpu_notifier.notifier_call = padata_cpu_callback;
-	pinst->cpu_notifier.priority = 0;
-	register_hotcpu_notifier(&pinst->cpu_notifier);
-#endif