From 4b886f375646664b9110e4d8f1360cb759e1d3fb Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Wed, 7 Jan 2009 18:08:41 -0800 Subject: [PATCH] --- yaml --- r: 127610 b: refs/heads/master c: 5a7625df725a486ad600b0036b6111dbd6321c41 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/cpuset.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 6ba7a2f7f30c..287300b0672e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f5813d94279a18ff5936d675e24b44b44a571197 +refs/heads/master: 5a7625df725a486ad600b0036b6111dbd6321c41 diff --git a/trunk/kernel/cpuset.c b/trunk/kernel/cpuset.c index 6012e326e856..41c2343df975 100644 --- a/trunk/kernel/cpuset.c +++ b/trunk/kernel/cpuset.c @@ -1486,13 +1486,13 @@ static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft, static int cpuset_sprintf_cpulist(char *page, struct cpuset *cs) { - cpumask_t mask; + int ret; mutex_lock(&callback_mutex); - mask = cs->cpus_allowed; + ret = cpulist_scnprintf(page, PAGE_SIZE, &cs->cpus_allowed); mutex_unlock(&callback_mutex); - return cpulist_scnprintf(page, PAGE_SIZE, &mask); + return ret; } static int cpuset_sprintf_memlist(char *page, struct cpuset *cs)