aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDamien Lespiau <[email protected]>2014-08-08 19:25:57 +0100
committerDaniel Vetter <[email protected]>2014-08-08 20:52:31 +0200
commit4fa790421c10e5c9c62406655c06d97a94555d54 (patch)
treec07935a465bdcc7a37093a8b02fb20046d183a34 /tools/perf/scripts/python
parent2c0827cffca8ac0c654b888c58a1989a5172f007 (diff)
drm/i915: Fix erroneous conversion to u8
adj was defined as u8. The issue is last_adj can be negative and adj is initialized with: adj = dev_priv->rps.last_adj; and we were also happily doing things like: if (adj < 0) (thank static analysers!) v2: Make new_delay an int in case we overflow the u8 in the intermediate computations. new_delay will get clamped at the end anyway. (Ville) Cc: Deepak S <[email protected]> Cc: Ville Syrjälä <[email protected]> Signed-off-by: Damien Lespiau <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions