aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2025-05-13 07:25:49 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2025-05-15 06:14:17 -0700
commiteaa287069a70aa80e5e95d5162445962809d8158 (patch)
tree42104c1ee493ed2ec2cc34da6542e8ae8c802e95 /tools/perf/scripts/python
parentdrm/xe/guc: Don't allocate managed BO for each policy change (diff)
downloadlinux-eaa287069a70aa80e5e95d5162445962809d8158.tar.gz
linux-eaa287069a70aa80e5e95d5162445962809d8158.zip
drm/xe/guc_submit: Simplify and fix diff calculation
With a u32 type, there's no need to check which one is greater: the current is always the latest and if it's less than the previous, it's because it wrapped: just do the unsigned calculation that will lead to the same result, or better the correct one. It fixes an off-by-one in the wrapped calculation, however that doesn't really matter for the timeout calculation. Reviewed-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20250513-time-wrap-v1-1-fba9a69a65c8@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions