diff options
author | Mike Travis <travis@sgi.com> | 2008-04-08 14:43:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:44:59 -0400 |
commit | 39106dcf85285e78f3b290022122c76f851379b8 (patch) | |
tree | 7fe93aaf6a433920b1c31725f42db30799deaa55 /kernel/cpuset.c | |
parent | fb0f330e62d71f7c535251438068199af320cf73 (diff) |
cpumask: use new cpus_scnprintf function
* Cleaned up references to cpumask_scnprintf() and added new
cpulist_scnprintf() interfaces where appropriate.
* Fix some small bugs (or code efficiency improvments) for various uses
of cpumask_scnprintf.
* Clean up some checkpatch errors.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 6b9ac296a05c..b0c870b2ac30 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -2254,8 +2254,16 @@ void cpuset_task_status_allowed(struct seq_file *m, struct task_struct *task) | |||
2254 | m->count += cpumask_scnprintf(m->buf + m->count, m->size - m->count, | 2254 | m->count += cpumask_scnprintf(m->buf + m->count, m->size - m->count, |
2255 | task->cpus_allowed); | 2255 | task->cpus_allowed); |
2256 | seq_printf(m, "\n"); | 2256 | seq_printf(m, "\n"); |
2257 | seq_printf(m, "Cpus_allowed_list:\t"); | ||
2258 | m->count += cpulist_scnprintf(m->buf + m->count, m->size - m->count, | ||
2259 | task->cpus_allowed); | ||
2260 | seq_printf(m, "\n"); | ||
2257 | seq_printf(m, "Mems_allowed:\t"); | 2261 | seq_printf(m, "Mems_allowed:\t"); |
2258 | m->count += nodemask_scnprintf(m->buf + m->count, m->size - m->count, | 2262 | m->count += nodemask_scnprintf(m->buf + m->count, m->size - m->count, |
2259 | task->mems_allowed); | 2263 | task->mems_allowed); |
2260 | seq_printf(m, "\n"); | 2264 | seq_printf(m, "\n"); |
2265 | seq_printf(m, "Mems_allowed_list:\t"); | ||
2266 | m->count += nodelist_scnprintf(m->buf + m->count, m->size - m->count, | ||
2267 | task->mems_allowed); | ||
2268 | seq_printf(m, "\n"); | ||
2261 | } | 2269 | } |