forked from Minki/linux
Staging: lustre: linux-cpu: Remove unnecessary wrapper function
Remove the function cfs_node_to_cpumask() and replace all its calls with the function it wrapped. Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9561c25c59
commit
26da323423
@ -78,11 +78,6 @@ struct cfs_cpt_data {
|
||||
|
||||
static struct cfs_cpt_data cpt_data;
|
||||
|
||||
static void cfs_node_to_cpumask(int node, cpumask_t *mask)
|
||||
{
|
||||
cpumask_copy(mask, cpumask_of_node(node));
|
||||
}
|
||||
|
||||
void
|
||||
cfs_cpt_table_free(struct cfs_cpt_table *cptab)
|
||||
{
|
||||
@ -414,7 +409,7 @@ cfs_cpt_set_node(struct cfs_cpt_table *cptab, int cpt, int node)
|
||||
mutex_lock(&cpt_data.cpt_mutex);
|
||||
|
||||
mask = cpt_data.cpt_cpumask;
|
||||
cfs_node_to_cpumask(node, mask);
|
||||
cpumask_copy(mask, cpumask_of_node(node));
|
||||
|
||||
rc = cfs_cpt_set_cpumask(cptab, cpt, mask);
|
||||
|
||||
@ -438,7 +433,7 @@ cfs_cpt_unset_node(struct cfs_cpt_table *cptab, int cpt, int node)
|
||||
mutex_lock(&cpt_data.cpt_mutex);
|
||||
|
||||
mask = cpt_data.cpt_cpumask;
|
||||
cfs_node_to_cpumask(node, mask);
|
||||
cpumask_copy(mask, cpumask_of_node(node));
|
||||
|
||||
cfs_cpt_unset_cpumask(cptab, cpt, mask);
|
||||
|
||||
@ -757,7 +752,7 @@ cfs_cpt_table_create(int ncpt)
|
||||
}
|
||||
|
||||
for_each_online_node(i) {
|
||||
cfs_node_to_cpumask(i, mask);
|
||||
cpumask_copy(mask, cpumask_of_node(i));
|
||||
|
||||
while (!cpumask_empty(mask)) {
|
||||
struct cfs_cpu_partition *part;
|
||||
|
Loading…
Reference in New Issue
Block a user