Commit c70f22d2 authored by Li Zefan's avatar Li Zefan Committed by Ingo Molnar

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 39aac648
...@@ -912,7 +912,6 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd) ...@@ -912,7 +912,6 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd)
extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new, extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
struct sched_domain_attr *dattr_new); struct sched_domain_attr *dattr_new);
extern int arch_reinit_sched_domains(void);
/* Test a flag in parent sched domain */ /* Test a flag in parent sched domain */
static inline int test_sd_parent(struct sched_domain *sd, int flag) static inline int test_sd_parent(struct sched_domain *sd, int flag)
......
...@@ -7987,7 +7987,7 @@ void partition_sched_domains(int ndoms_new, struct cpumask *doms_new, ...@@ -7987,7 +7987,7 @@ void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
} }
#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) #if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
int arch_reinit_sched_domains(void) static void arch_reinit_sched_domains(void)
{ {
get_online_cpus(); get_online_cpus();
...@@ -7996,13 +7996,10 @@ int arch_reinit_sched_domains(void) ...@@ -7996,13 +7996,10 @@ int arch_reinit_sched_domains(void)
rebuild_sched_domains(); rebuild_sched_domains();
put_online_cpus(); put_online_cpus();
return 0;
} }
static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
{ {
int ret;
unsigned int level = 0; unsigned int level = 0;
if (sscanf(buf, "%u", &level) != 1) 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,9 +8020,9 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
else else
sched_mc_power_savings = level; sched_mc_power_savings = level;
ret = arch_reinit_sched_domains(); arch_reinit_sched_domains();
return ret ? ret : count; return count;
} }
#ifdef CONFIG_SCHED_MC #ifdef CONFIG_SCHED_MC
......
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