Commit c6f7f1b
committed
drm/amd/pm: Avoid open-coded use of ratelimit_state structure's internals
The amdgpu_set_thermal_throttling_logging() function directly accesses
the ratelimit_state structure's ->missed field, which works, but which
also makes it more difficult to change this field. Therefore, make use
of the ratelimit_state_reset_interval() function instead of directly
accessing the ->missed field.
Nevertheless, open-coded use of ->burst and ->interval is still permitted,
for example, for runtime sysfs adjustment of these fields.
Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Paul E. McKenney <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Cc: Kenneth Feng <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: Xinhui Pan <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>1 parent 25228c6 commit c6f7f1b
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | | - | |
1610 | 1609 | | |
1611 | 1610 | | |
1612 | 1611 | | |
| |||
1617 | 1616 | | |
1618 | 1617 | | |
1619 | 1618 | | |
1620 | | - | |
1621 | 1619 | | |
1622 | 1620 | | |
1623 | 1621 | | |
1624 | 1622 | | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
| 1623 | + | |
| 1624 | + | |
1632 | 1625 | | |
1633 | 1626 | | |
1634 | 1627 | | |
| |||
0 commit comments