History

mm, thp: add VM_INIT_DEF_MASK and PRCTL_THP_DISABLE

Add VM_INIT_DEF_MASK, to allow us to set the default flags for VMs. It also adds a prctl control which allows us to set the THP disable bit in mm->def_flags so that VMs will pick up the setting as they are created.

Alex Thorlton committed 12 years ago

Commit a0715cc1 parent 1e1836e4 files · +29 −3Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/prctl.h+3−0
@@ -149,4 +149,7 @@ · 148 unmodified lines
149149
150150 #define PR_GET_TID_ADDRESS 40
151151
152+#define PR_SET_THP_DISABLE 41
153+#define PR_GET_THP_DISABLE 42
154+
152155 #endif /* _LINUX_PRCTL_H */