aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWei Ni <[email protected]>2015-06-16 17:35:12 +0800
committerBen Skeggs <[email protected]>2015-08-28 12:40:01 +1000
commit85fa319d8a5240bab2e4123cfc9178bff55694ca (patch)
tree1ccd341e0da1706d61c6f3a7037981de30c0bad7 /tools/perf/scripts/python
parentd4a312dc90a7c1079133b038aec0120ee9e3d0ce (diff)
drm/nouveau/drm/nouveau/clk: fix tstate to pstate calculation
According to the tstate calculation in nvkm_clk_tstate(), the range of tstate is from -(clk->state_nr - 1) to 0, it mean the tstate is negative value. But in nvkm_pstate_work(), it use (clk->state_nr - 1 - clk->tstate) to limit pstate, it's not correct. This patch fix it to use (clk->state_nr - 1 + clk->tstate) to limit pstate. Signed-off-by: Wei Ni <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions