summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorZhongqiu Han <quic_zhonhan@quicinc.com>2025-04-05 16:53:08 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-04-09 20:37:30 +0300
commitd4a7882f93bf2520315d10ab600ea4701e22be69 (patch)
tree0f528a81f7a8603a9deeaf75f9310e83a0e4cd2b /scripts/generate_rust_analyzer.py
parent194c396e8a0d25f06dfb02683f8e33727a58882f (diff)
downloadlinux-d4a7882f93bf2520315d10ab600ea4701e22be69.tar.xz
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 <christian.loehle@arm.com> Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com> Link: https://patch.msgid.link/20250405135308.1854342-1-quic_zhonhan@quicinc.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions