diff options
author | Zhongqiu Han <quic_zhonhan@quicinc.com> | 2025-04-05 21:53:08 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-04-09 19:37:30 +0200 |
commit | d4a7882f93bf2520315d10ab600ea4701e22be69 (patch) | |
tree | 0f528a81f7a8603a9deeaf75f9310e83a0e4cd2b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 194c396e8a0d25f06dfb02683f8e33727a58882f (diff) |
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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions