aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorOscar Salvador <[email protected]>2024-10-07 09:50:37 +0200
committerAndrew Morton <[email protected]>2024-11-06 20:11:10 -0800
commitbd40b053fabe27209cb240d205a0c817cbe5fb87 (patch)
treef642ad79ff45513e4ae7c9494c0889c3ad1eb8f4 /tools/perf/scripts/python/mem-phys-addr.py
parent5b2f650d593ed4d020228df8563e7ad23abc847f (diff)
mm: consolidate common checks in hugetlb_get_unmapped_area
prepare_hugepage_range() performs almost the same checks for all architectures that define it, with the exception of mips and loongarch that also check for overflows. The rest checks for the addr and len to be properly aligned, so we can move that to hugetlb_get_unmapped_area() and get rid of a fair amount of duplicated code. [[email protected]: remove now-unused local] Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Oscar Salvador <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Donet Tom <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Muchun Song <[email protected]> Cc: Peter Xu <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions