aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorPankaj Raghav <[email protected]>2024-01-15 11:25:22 +0100
committerAndrew Morton <[email protected]>2024-02-22 10:24:38 -0800
commite03c16fb4af1dfc615a4e1f51be0d5fe5840b904 (patch)
tree706962b309671906187803f1bb0e26be724443dc /include/linux/fpga/fpga-mgr.h
parentcabbb6d51e2af4fc2f3c763f58a12c628f228987 (diff)
readahead: use ilog2 instead of a while loop in page_cache_ra_order()
A while loop is used to adjust the new_order to be lower than the ra->size. ilog2 could be used to do the same instead of using a loop. ilog2 typically resolves to a bit scan reverse instruction. This is particularly useful when ra->size is smaller than the 2^new_order as it resolves in one instruction instead of looping to find the new_order. No functional changes. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Pankaj Raghav <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions