cpuset: Remove cpuset_update_active_cpus()'s parameter.

In cpuset_update_active_cpus(), cpu_online isn't used anymore. Remove
it.

Signed-off-by: Rakib Mullick<rakib.mullick@gmail.com>
Acked-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Rakib Mullick 2017-04-09 07:36:14 +06:00 committed by Tejun Heo
parent 75fa8e5d3b
commit 30e03acda5
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ static inline void cpuset_dec(void)
extern int cpuset_init(void);
extern void cpuset_init_smp(void);
extern void cpuset_update_active_cpus(bool cpu_online);
extern void cpuset_update_active_cpus(void);
extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
extern void cpuset_cpus_allowed_fallback(struct task_struct *p);
extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
@ -155,7 +155,7 @@ static inline bool cpusets_enabled(void) { return false; }
static inline int cpuset_init(void) { return 0; }
static inline void cpuset_init_smp(void) {}
static inline void cpuset_update_active_cpus(bool cpu_online)
static inline void cpuset_update_active_cpus(void)
{
partition_sched_domains(1, NULL, NULL);
}

View File

@ -2351,7 +2351,7 @@ static void cpuset_hotplug_workfn(struct work_struct *work)
rebuild_sched_domains();
}
void cpuset_update_active_cpus(bool cpu_online)
void cpuset_update_active_cpus(void)
{
/*
* We're inside cpu hotplug critical region which usually nests

View File

@ -5727,7 +5727,7 @@ static void cpuset_cpu_active(void)
* cpuset configurations.
*/
}
cpuset_update_active_cpus(true);
cpuset_update_active_cpus();
}
static int cpuset_cpu_inactive(unsigned int cpu)
@ -5750,7 +5750,7 @@ static int cpuset_cpu_inactive(unsigned int cpu)
if (overflow)
return -EBUSY;
cpuset_update_active_cpus(false);
cpuset_update_active_cpus();
} else {
num_cpus_frozen++;
partition_sched_domains(1, NULL, NULL);