aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorZhongqiu Han <[email protected]>2025-04-05 13:53:08 +0000
committerRafael J. Wysocki <[email protected]>2025-04-09 17:37:30 +0000
commitd4a7882f93bf2520315d10ab600ea4701e22be69 (patch)
tree0f528a81f7a8603a9deeaf75f9310e83a0e4cd2b /drivers/fpga/tests/fpga-mgr-test.c
parentcpuidle: teo: Fix typos in two comments (diff)
downloadkernel-d4a7882f93bf2520315d10ab600ea4701e22be69.tar.gz
kernel-d4a7882f93bf2520315d10ab600ea4701e22be69.zip
cpuidle: menu: Optimize bucket assignment when next_timer_ns equals KTIME_MAX
Directly assign the last bucket value instead of calling which_bucket() when next_timer_ns equals KTIME_MAX, the largest possible value that always falls into the last bucket. This avoids unnecessary calculations and enhances performance. Reviewed-by: Christian Loehle <[email protected]> Signed-off-by: Zhongqiu Han <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions