Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45e575ab authored by Rusty Russell's avatar Rusty Russell
Browse files

cpumask: mm_cpumask for accessing the struct mm_struct's cpu_vm_mask.



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: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 76e6eee0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 */