projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e6eee
)
cpumask: mm_cpumask for accessing the struct mm_struct's cpu_vm_mask.
author
Rusty Russell
<
[email protected]
>
Thu, 12 Mar 2009 20:35:44 +0000
(14:35 -0600)
committer
Rusty Russell
<
[email protected]
>
Thu, 12 Mar 2009 04:05:44 +0000
(14:35 +1030)
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 <
[email protected]
>
include/linux/mm_types.h
patch
|
blob
|
history
diff --git
a/include/linux/mm_types.h
b/include/linux/mm_types.h
index 92915e81443ff028afc2ac8a188a7bdbf94721ee..d84feb7bdbf00b8fa054364c7fa2d80d2a20b2a6 100644
(file)
--- a/
include/linux/mm_types.h
+++ b/
include/linux/mm_types.h
@@
-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 */