aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 6012e326e856..41c2343df975 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -1486,13 +1486,13 @@ static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft,
1486 1486
1487static int cpuset_sprintf_cpulist(char *page, struct cpuset *cs) 1487static int cpuset_sprintf_cpulist(char *page, struct cpuset *cs)
1488{ 1488{
1489 cpumask_t mask; 1489 int ret;
1490 1490
1491 mutex_lock(&callback_mutex); 1491 mutex_lock(&callback_mutex);
1492 mask = cs->cpus_allowed; 1492 ret = cpulist_scnprintf(page, PAGE_SIZE, &cs->cpus_allowed);
1493 mutex_unlock(&callback_mutex); 1493 mutex_unlock(&callback_mutex);
1494 1494
1495 return cpulist_scnprintf(page, PAGE_SIZE, &mask); 1495 return ret;
1496} 1496}
1497 1497
1498static int cpuset_sprintf_memlist(char *page, struct cpuset *cs) 1498static int cpuset_sprintf_memlist(char *page, struct cpuset *cs)