diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-01-05 06:07:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-05 07:54:16 -0500 |
commit | c70f22d203fc02c805b6ed4a3483b740dc36786b (patch) | |
tree | 2677c5981257915c8682f0b08043ac46db1f709e /kernel | |
parent | 39aac64812da70f0af262f4700e67637338cbb3b (diff) |
sched: clean up arch_reinit_sched_domains()
- Make arch_reinit_sched_domains() static. It was exported to be used in
s390, but now rebuild_sched_domains() is used instead.
- Make it return void.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 9a8e296959c1..c5019a5dcaa4 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7987,7 +7987,7 @@ match2: | |||
7987 | } | 7987 | } |
7988 | 7988 | ||
7989 | #if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) | 7989 | #if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) |
7990 | int arch_reinit_sched_domains(void) | 7990 | static void arch_reinit_sched_domains(void) |
7991 | { | 7991 | { |
7992 | get_online_cpus(); | 7992 | get_online_cpus(); |
7993 | 7993 | ||
@@ -7996,13 +7996,10 @@ int arch_reinit_sched_domains(void) | |||
7996 | 7996 | ||
7997 | rebuild_sched_domains(); | 7997 | rebuild_sched_domains(); |
7998 | put_online_cpus(); | 7998 | put_online_cpus(); |
7999 | |||
8000 | return 0; | ||
8001 | } | 7999 | } |
8002 | 8000 | ||
8003 | static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) | 8001 | static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) |
8004 | { | 8002 | { |
8005 | int ret; | ||
8006 | unsigned int level = 0; | 8003 | unsigned int level = 0; |
8007 | 8004 | ||
8008 | if (sscanf(buf, "%u", &level) != 1) | 8005 | if (sscanf(buf, "%u", &level) != 1) |
@@ -8023,9 +8020,9 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) | |||
8023 | else | 8020 | else |
8024 | sched_mc_power_savings = level; | 8021 | sched_mc_power_savings = level; |
8025 | 8022 | ||
8026 | ret = arch_reinit_sched_domains(); | 8023 | arch_reinit_sched_domains(); |
8027 | 8024 | ||
8028 | return ret ? ret : count; | 8025 | return count; |
8029 | } | 8026 | } |
8030 | 8027 | ||
8031 | #ifdef CONFIG_SCHED_MC | 8028 | #ifdef CONFIG_SCHED_MC |