- cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     cpu hotplug: make cpu_notifier related notifier calls __cpuinit only

has been removed from the -mm tree.  Its filename is

     cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only.patch

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

------------------------------------------------------
Subject: cpu hotplug: make cpu_notifier related notifier calls __cpuinit only
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>

Make notifier_calls associated with cpu_notifier as __cpuinit.

__cpuinit makes sure that the function is init time only unless
CONFIG_HOTPLUG_CPU is defined.

[akpm@xxxxxxxx: section fix]
Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Cc: Ashok Raj <ashok.raj@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/sched.c      |    7 ++++---
 mm/page-writeback.c |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff -puN kernel/sched.c~cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only kernel/sched.c
--- a/kernel/sched.c~cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only
+++ a/kernel/sched.c
@@ -4734,8 +4734,9 @@ static void migrate_dead_tasks(unsigned 
  * migration_call - callback that gets triggered when a CPU is added.
  * Here we can start up the necessary migration thread for the new CPU.
  */
-static int migration_call(struct notifier_block *nfb, unsigned long action,
-			  void *hcpu)
+static int __cpuinit migration_call(struct notifier_block *nfb,
+			unsigned long action,
+			void *hcpu)
 {
 	int cpu = (long)hcpu;
 	struct task_struct *p;
@@ -4805,7 +4806,7 @@ static int migration_call(struct notifie
 /* Register at highest priority so that task migration (migrate_all_tasks)
  * happens before everything else.
  */
-static struct notifier_block __devinitdata migration_notifier = {
+static struct notifier_block __cpuinitdata migration_notifier = {
 	.notifier_call = migration_call,
 	.priority = 10
 };
diff -puN mm/page-writeback.c~cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only mm/page-writeback.c
--- a/mm/page-writeback.c~cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only
+++ a/mm/page-writeback.c
@@ -516,7 +516,7 @@ static void set_ratelimit(void)
 		ratelimit_pages = (4096 * 1024) / PAGE_CACHE_SIZE;
 }
 
-static int
+static int __cpuinit
 ratelimit_handler(struct notifier_block *self, unsigned long u, void *v)
 {
 	set_ratelimit();
_

Patches currently in -mm which might be from sekharan@xxxxxxxxxx are

origin.patch
per-task-delay-accounting-cpu-delay-collection-via-schedstats.patch
task-watchers-task-watchers.patch
task-watchers-task-watchers-tidy.patch
task-watchers-register-per-task-delay-accounting.patch
task-watchers-add-support-for-per-task-watchers.patch
task-watchers-add-support-for-per-task-watchers-warning-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux