diff options
| author | Aneesh Kumar K.V <[email protected]> | 2013-06-05 17:14:05 -0700 |
|---|---|---|
| committer | Benjamin Herrenschmidt <[email protected]> | 2013-06-20 16:55:08 +1000 |
| commit | fde52796d487b675cde55427e3347ff3e59f9a7f (patch) | |
| tree | 3dd0b69084ab6ecc71caa6a110c353597a9df260 /tools/perf/scripts/python/bin | |
| parent | a6bf2bb03e5bad7e9289d80ecb5faac11630c7ab (diff) | |
mm/THP: don't use HPAGE_SHIFT in transparent hugepage code
For architectures like powerpc that support multiple explicit hugepage
sizes, HPAGE_SHIFT indicate the default explicit hugepage shift. For THP
to work the hugepage size should be same as PMD_SIZE. So use PMD_SHIFT
directly. So move the define outside CONFIG_TRANSPARENT_HUGEPAGE #ifdef
because we want to use these defines in generic code with if
(pmd_trans_huge()) conditional.
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: David Gibson <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions