Skip to content

Commit

Permalink
cpumask: rename tsk_cpumask to tsk_cpus_allowed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rusty Russell committed Dec 17, 2009
1 parent 4251417 commit a463681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a463681

Please sign in to comment.