diff options
| author | Tvrtko Ursulin <[email protected]> | 2016-06-29 12:27:22 +0100 |
|---|---|---|
| committer | Tvrtko Ursulin <[email protected]> | 2016-06-29 15:53:15 +0100 |
| commit | 18f4b8435c50888bb36cf8de3b7f0075f00dc12c (patch) | |
| tree | 22fc1a86c1c0461f418df08faccce9e92540d664 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | c68b0ab2e08fd8913a794d11e74cbf5cd589b3df (diff) | |
drm/i915: Use atomic waits for short non-atomic ones
usleep_range is not recommended for waits shorten than 10us.
Make the wait_for_us use the atomic variant for such waits.
To do so we need to reimplement the _wait_for_atomic macro to
be safe with regards to preemption and interrupts.
v2: Reimplement _wait_for_atomic to be irq and preemption safe.
(Chris Wilson and Imre Deak)
v3: Fixed in_atomic check due rebase error.
v4: Build bug on non-constant timeouts.
v5: Compile away cpu migration code in atomic paths.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions