aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/cpus.py
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2015-03-20 21:28:08 +0200
committerDaniel Vetter <[email protected]>2015-03-23 10:30:16 +0100
commit9848de082ff400f8b88e6d550bfce551838af69c (patch)
tree63289e17f9c1adfe8fa2067b6605e28f38a7a264 /scripts/gdb/linux/cpus.py
parent0b37a9a9ebdf47dc9d5290a1c69bd944dde5cc15 (diff)
drm/i915: Use usleep_range() in wait_for()
msleep() can sleep for way too long, so switch wait_for() to use usleep_range() instead. Following a totally unscientific method I just picked the range as W-2W. This cuts the i915 init time on my BSW to almost half: - initcall i915_init+0x0/0xa8 [i915] returned 0 after 419977 usecs + initcall i915_init+0x0/0xa8 [i915] returned 0 after 238419 usecs Note that I didn't perform any other benchmarks on this so far. Cc: Jesse Barnes <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Reviewed-by: Jesse Barnes <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions