diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:25 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:25 -0500 |
commit | 29c0177e6a4ac094302bed54a1d4bbb6b740a9ef (patch) | |
tree | d8ee57c5b40baa3f53d607b719344dd20f8c85a0 /kernel/sched.c | |
parent | 98a79d6a50181ca1ecf7400eda01d5dc1bc0dbf0 (diff) |
cpumask: change cpumask_scnprintf, cpumask_parse_user, cpulist_parse, and cpulist_scnprintf to take pointers.
Impact: change calling convention of existing cpumask APIs
Most cpumask functions started with cpus_: these have been replaced by
cpumask_ ones which take struct cpumask pointers as expected.
These four functions don't have good replacement names; fortunately
they're rarely used, so we just change them over.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: paulus@samba.org
Cc: mingo@redhat.com
Cc: tony.luck@intel.com
Cc: ralf@linux-mips.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: cl@linux-foundation.org
Cc: srostedt@redhat.com
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index e4bb1dd7b308..d2d16d1273b1 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6666,7 +6666,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, | |||
6666 | struct sched_group *group = sd->groups; | 6666 | struct sched_group *group = sd->groups; |
6667 | char str[256]; | 6667 | char str[256]; |
6668 | 6668 | ||
6669 | cpulist_scnprintf(str, sizeof(str), sd->span); | 6669 | cpulist_scnprintf(str, sizeof(str), &sd->span); |
6670 | cpus_clear(*groupmask); | 6670 | cpus_clear(*groupmask); |
6671 | 6671 | ||
6672 | printk(KERN_DEBUG "%*s domain %d: ", level, "", level); | 6672 | printk(KERN_DEBUG "%*s domain %d: ", level, "", level); |
@@ -6720,7 +6720,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, | |||
6720 | 6720 | ||
6721 | cpus_or(*groupmask, *groupmask, group->cpumask); | 6721 | cpus_or(*groupmask, *groupmask, group->cpumask); |
6722 | 6722 | ||
6723 | cpulist_scnprintf(str, sizeof(str), group->cpumask); | 6723 | cpulist_scnprintf(str, sizeof(str), &group->cpumask); |
6724 | printk(KERN_CONT " %s", str); | 6724 | printk(KERN_CONT " %s", str); |
6725 | 6725 | ||
6726 | group = group->next; | 6726 | group = group->next; |