cpumask: rename tsk_cpumask to tsk_cpus_allowed
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Dec 2009 17:43:29 +0000 (11:43 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Dec 2009 01:13:30 +0000 (11:43 +1030)
Noone uses this wrapper yet, and Ingo asked that it be kept consistent
with current task_struct usage.

(One user crept in via linux-next: fixed)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Tejun Heo <tj@kernel.org>
arch/x86/kernel/cpu/cpufreq/powernow-k8.c
include/linux/sched.h

index a9df9441a9a240cd138b6492896cc0788a04cf1b..f125e5c551c0db827d33110dfd0d25688053e3c7 100644 (file)
@@ -1136,7 +1136,7 @@ static int powernowk8_target(struct cpufreq_policy *pol,
        if (!alloc_cpumask_var(&oldmask, GFP_KERNEL))
                return -ENOMEM;
 
-       cpumask_copy(oldmask, tsk_cpumask(current));
+       cpumask_copy(oldmask, tsk_cpus_allowed(current));
        set_cpus_allowed_ptr(current, cpumask_of(pol->cpu));
 
        if (smp_processor_id() != pol->cpu) {
index 244c287a5ac12f4b0c10068322b3daac493ba29e..4d7adb282bdd387a3c1502fb97516688cecd2eff 100644 (file)
@@ -1555,7 +1555,7 @@ struct task_struct {
 };
 
 /* Future-safe accessor for struct task_struct's cpus_allowed. */
-#define tsk_cpumask(tsk) (&(tsk)->cpus_allowed)
+#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
 
 /*
  * Priority of a process goes from 0..MAX_PRIO-1, valid RT