aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2018-01-22 12:22:30 +0300
committerLinus Torvalds <[email protected]>2018-01-22 12:15:57 -0800
commit7222708e823afc98dfb769d36bf2f26b6420b7ce (patch)
tree574d64c2b67d294ed4299f35b2cb98ac7cdd6053 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parent0d665e7b109d512b7cae3ccef6e8654714887844 (diff)
mm, page_vma_mapped: Introduce pfn_in_hpage()
The new helper would check if the pfn belongs to the page. For huge pages it checks if the PFN is within range covered by the huge page. The helper is used in check_pte(). The original code the helper replaces had two call to page_to_pfn(). page_to_pfn() is relatively costly. Although current GCC is able to optimize code to have one call, it's better to do this explicitly. Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions