Skip to content

Commit

Permalink
cpumask: mm_cpumask for accessing the struct mm_struct's cpu_vm_mask.
Browse files Browse the repository at this point in the history
This allows us to change the representation (to a dangling bitmap or
cpumask_var_t) without breaking all the callers: they can use
mm_cpumask() now and won't see a difference as the changes roll into
linux-next.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Rusty Russell committed Mar 12, 2009
1 parent 76e6eee commit 45e575a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/mm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,7 @@ struct mm_struct {
#endif
};

/* Future-safe accessor for struct mm_struct's cpu_vm_mask. */
#define mm_cpumask(mm) (&(mm)->cpu_vm_mask)

#endif /* _LINUX_MM_TYPES_H */

0 comments on commit 45e575a

Please sign in to comment.