提交 c4a8849a 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

sched: Remove obsolete arch_ prefixes

Non weak static functions clearly are not arch specific, so remove the
arch_ prefix.
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20110407122941.820460566@chello.nlSigned-off-by: NIngo Molnar <mingo@elte.hu>
上级 f4ad9bd2
...@@ -231,7 +231,7 @@ static void destroy_rt_bandwidth(struct rt_bandwidth *rt_b) ...@@ -231,7 +231,7 @@ static void destroy_rt_bandwidth(struct rt_bandwidth *rt_b)
#endif #endif
/* /*
* sched_domains_mutex serializes calls to arch_init_sched_domains, * sched_domains_mutex serializes calls to init_sched_domains,
* detach_destroy_domains and partition_sched_domains. * detach_destroy_domains and partition_sched_domains.
*/ */
static DEFINE_MUTEX(sched_domains_mutex); static DEFINE_MUTEX(sched_domains_mutex);
...@@ -7670,7 +7670,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms) ...@@ -7670,7 +7670,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms)
* For now this just excludes isolated cpus, but could be used to * For now this just excludes isolated cpus, but could be used to
* exclude other special cases in the future. * exclude other special cases in the future.
*/ */
static int arch_init_sched_domains(const struct cpumask *cpu_map) static int init_sched_domains(const struct cpumask *cpu_map)
{ {
int err; int err;
...@@ -7687,7 +7687,7 @@ static int arch_init_sched_domains(const struct cpumask *cpu_map) ...@@ -7687,7 +7687,7 @@ static int arch_init_sched_domains(const struct cpumask *cpu_map)
return err; return err;
} }
static void arch_destroy_sched_domains(const struct cpumask *cpu_map, static void destroy_sched_domains(const struct cpumask *cpu_map,
struct cpumask *tmpmask) struct cpumask *tmpmask)
{ {
free_sched_groups(cpu_map, tmpmask); free_sched_groups(cpu_map, tmpmask);
...@@ -7706,7 +7706,7 @@ static void detach_destroy_domains(const struct cpumask *cpu_map) ...@@ -7706,7 +7706,7 @@ static void detach_destroy_domains(const struct cpumask *cpu_map)
for_each_cpu(i, cpu_map) for_each_cpu(i, cpu_map)
cpu_attach_domain(NULL, &def_root_domain, i); cpu_attach_domain(NULL, &def_root_domain, i);
synchronize_sched(); synchronize_sched();
arch_destroy_sched_domains(cpu_map, to_cpumask(tmpmask)); destroy_sched_domains(cpu_map, to_cpumask(tmpmask));
} }
/* handle null as "default" */ /* handle null as "default" */
...@@ -7815,7 +7815,7 @@ void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], ...@@ -7815,7 +7815,7 @@ void partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
} }
#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) #if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
static void arch_reinit_sched_domains(void) static void reinit_sched_domains(void)
{ {
get_online_cpus(); get_online_cpus();
...@@ -7848,7 +7848,7 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) ...@@ -7848,7 +7848,7 @@ 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;
arch_reinit_sched_domains(); reinit_sched_domains();
return count; return count;
} }
...@@ -7974,7 +7974,7 @@ void __init sched_init_smp(void) ...@@ -7974,7 +7974,7 @@ void __init sched_init_smp(void)
#endif #endif
get_online_cpus(); get_online_cpus();
mutex_lock(&sched_domains_mutex); mutex_lock(&sched_domains_mutex);
arch_init_sched_domains(cpu_active_mask); init_sched_domains(cpu_active_mask);
cpumask_andnot(non_isolated_cpus, cpu_possible_mask, cpu_isolated_map); cpumask_andnot(non_isolated_cpus, cpu_possible_mask, cpu_isolated_map);
if (cpumask_empty(non_isolated_cpus)) if (cpumask_empty(non_isolated_cpus))
cpumask_set_cpu(smp_processor_id(), non_isolated_cpus); cpumask_set_cpu(smp_processor_id(), non_isolated_cpus);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册