* [PATCH sched/core] sched,cpuset: drop __cpuexit from cpu hotplug callbacks
@ 2010-06-21 21:53 Tejun Heo
2010-06-21 21:57 ` Luck, Tony
2010-06-22 12:48 ` [tip:sched/core] sched, cpuset: Drop " tip-bot for Tejun Heo
0 siblings, 2 replies; 3+ messages in thread
From: Tejun Heo @ 2010-06-21 21:53 UTC (permalink / raw)
To: Ingo Molnar, Peter Zijlstra, Linux Kernel, Tony Luck
Commit 3a101d05 (sched: adjust when cpu_active and cpuset
configurations are updated during cpu on/offlining) added hotplug
notifiers marked with __cpuexit; however, ia64 drops text in __cpuexit
during link unlike x86. This means that functions which are
referenced during init but used only for cpu hot unplugging afterwards
shouldn't be marked with __cpuexit. Drop __cpuexit from those
functions.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Tony Luck <tony.luck@intel.com>
---
This seems to work fine here but it would be nice if you can confirm
this. Thanks.
kernel/cpuset.c | 2 +-
kernel/sched.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 05727dc..7146793 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2118,7 +2118,7 @@ static void scan_for_empty_cpusets(struct cpuset *root)
* Called within get_online_cpus(). Needs to call cgroup_lock()
* before calling generate_sched_domains().
*/
-void __cpuexit cpuset_update_active_cpus(void)
+void cpuset_update_active_cpus(void)
{
struct sched_domain_attr *attr;
cpumask_var_t *doms;
diff --git a/kernel/sched.c b/kernel/sched.c
index b4427cc..9064e7d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7477,8 +7477,8 @@ int __init sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
* disabled, cpuset_update_active_cpus() becomes a simple wrapper
* around partition_sched_domains().
*/
-static int __cpuexit cpuset_cpu_active(struct notifier_block *nfb,
- unsigned long action, void *hcpu)
+static int cpuset_cpu_active(struct notifier_block *nfb, unsigned long action,
+ void *hcpu)
{
switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
@@ -7490,8 +7490,8 @@ static int __cpuexit cpuset_cpu_active(struct notifier_block *nfb,
}
}
-static int __cpuexit cpuset_cpu_inactive(struct notifier_block *nfb,
- unsigned long action, void *hcpu)
+static int cpuset_cpu_inactive(struct notifier_block *nfb, unsigned long action,
+ void *hcpu)
{
switch (action & ~CPU_TASKS_FROZEN) {
case CPU_DOWN_PREPARE:
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH sched/core] sched,cpuset: drop __cpuexit from cpu hotplug callbacks
2010-06-21 21:53 [PATCH sched/core] sched,cpuset: drop __cpuexit from cpu hotplug callbacks Tejun Heo
@ 2010-06-21 21:57 ` Luck, Tony
2010-06-22 12:48 ` [tip:sched/core] sched, cpuset: Drop " tip-bot for Tejun Heo
1 sibling, 0 replies; 3+ messages in thread
From: Luck, Tony @ 2010-06-21 21:57 UTC (permalink / raw)
To: Tejun Heo, Ingo Molnar, Peter Zijlstra, Linux Kernel
> This seems to work fine here but it would be nice if you can confirm
> this. Thanks.
Yes, that works for me. Thanks.
Acked-by: Tony Luck <tony.luck@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:sched/core] sched, cpuset: Drop __cpuexit from cpu hotplug callbacks
2010-06-21 21:53 [PATCH sched/core] sched,cpuset: drop __cpuexit from cpu hotplug callbacks Tejun Heo
2010-06-21 21:57 ` Luck, Tony
@ 2010-06-22 12:48 ` tip-bot for Tejun Heo
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Tejun Heo @ 2010-06-22 12:48 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, peterz, tj, tony.luck, tglx, mingo
Commit-ID: 0b2e918aa99fe6c3b8f163aa323a275ad8577828
Gitweb: http://git.kernel.org/tip/0b2e918aa99fe6c3b8f163aa323a275ad8577828
Author: Tejun Heo <tj@kernel.org>
AuthorDate: Mon, 21 Jun 2010 23:53:31 +0200
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 22 Jun 2010 08:07:39 +0200
sched, cpuset: Drop __cpuexit from cpu hotplug callbacks
Commit 3a101d05 (sched: adjust when cpu_active and cpuset
configurations are updated during cpu on/offlining) added
hotplug notifiers marked with __cpuexit; however, ia64 drops
text in __cpuexit during link unlike x86.
This means that functions which are referenced during init but used
only for cpu hot unplugging afterwards shouldn't be marked with
__cpuexit. Drop __cpuexit from those functions.
Reported-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4C1FDF5B.1040301@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/cpuset.c | 2 +-
kernel/sched.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 05727dc..7146793 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2118,7 +2118,7 @@ static void scan_for_empty_cpusets(struct cpuset *root)
* Called within get_online_cpus(). Needs to call cgroup_lock()
* before calling generate_sched_domains().
*/
-void __cpuexit cpuset_update_active_cpus(void)
+void cpuset_update_active_cpus(void)
{
struct sched_domain_attr *attr;
cpumask_var_t *doms;
diff --git a/kernel/sched.c b/kernel/sched.c
index b4427cc..9064e7d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7477,8 +7477,8 @@ int __init sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
* disabled, cpuset_update_active_cpus() becomes a simple wrapper
* around partition_sched_domains().
*/
-static int __cpuexit cpuset_cpu_active(struct notifier_block *nfb,
- unsigned long action, void *hcpu)
+static int cpuset_cpu_active(struct notifier_block *nfb, unsigned long action,
+ void *hcpu)
{
switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
@@ -7490,8 +7490,8 @@ static int __cpuexit cpuset_cpu_active(struct notifier_block *nfb,
}
}
-static int __cpuexit cpuset_cpu_inactive(struct notifier_block *nfb,
- unsigned long action, void *hcpu)
+static int cpuset_cpu_inactive(struct notifier_block *nfb, unsigned long action,
+ void *hcpu)
{
switch (action & ~CPU_TASKS_FROZEN) {
case CPU_DOWN_PREPARE:
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-22 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 21:53 [PATCH sched/core] sched,cpuset: drop __cpuexit from cpu hotplug callbacks Tejun Heo
2010-06-21 21:57 ` Luck, Tony
2010-06-22 12:48 ` [tip:sched/core] sched, cpuset: Drop " tip-bot for Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).