diff options
| author | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-09-22 12:58:30 -0700 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-09-24 21:23:19 -0700 |
| commit | b0ac4ef074ace20714a3bf96d23ae2ba61cc4439 (patch) | |
| tree | a33e987da7c52d9f7c95d6e552a0dc9194755604 /tools/perf/scripts/python/flamegraph.py | |
| parent | 09ab20c41ace0cfc00e48338ab2e2c58896fa094 (diff) | |
| download | linux-b0ac4ef074ace20714a3bf96d23ae2ba61cc4439.tar.gz linux-b0ac4ef074ace20714a3bf96d23ae2ba61cc4439.zip | |
drm/xe/guc_pc: Use poll_timeout_us() for waiting
Convert wait_for_pc_state() and wait_for_act_freq_limit() to
poll_timeout_us(). This brings 2 changes in behavior: Drop the
exponential wait and fix a potential much longer sleep.
usleep_range() will wait anywhere between `wait` and `wait << 1`, so
it's not correct to assume `slept += wait`. This code is not really
accurate. Pairing this with the exponential wait increase, it could be
waiting much longer than intended.
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://lore.kernel.org/r/20250922-xe-iopoll-v4-2-06438311a63f@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
