diff options
author | Dan Williams <[email protected]> | 2017-07-10 15:48:22 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-07-10 16:32:31 -0700 |
commit | 16981d763501c0e06e434cf6b59f964c520e0ccc (patch) | |
tree | 7a286e047280971e4eabb5812d5beca9da7d3f98 /tools/perf/scripts/python/syscall-counts.py | |
parent | 7ab0e50ad0831e714dcdc3de44a7fe3887732b7c (diff) |
mm: improve readability of transparent_hugepage_enabled()
Turn the macro into a static inline and rewrite the condition checks for
better readability in preparation for adding another condition.
[[email protected]: fix logic to make conversion equivalent]
[[email protected]: resolve vs mm-make-pr_set_thp_disable-immediately-active.patch]
[[email protected]: include coredump.h for MMF_DISABLE_THP]
Link: http://lkml.kernel.org/r/149739530612.20686.14760671150202647861.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <[email protected]>
Reviewed-by: Ross Zwisler <[email protected]>
Acked-by: "Kirill A. Shutemov" <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions