diff options
| author | Paul E. McKenney <[email protected]> | 2025-03-13 23:11:38 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2025-05-08 23:13:26 +0000 |
| commit | 48e864ae865744d1451b1776a14acfa422e8a115 (patch) | |
| tree | 1b864209ef5b794ecb8663356abb32e11cf4bbe6 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
| parent | ratelimit: Create functions to handle ratelimit_state internals (diff) | |
| download | kernel-48e864ae865744d1451b1776a14acfa422e8a115.tar.gz kernel-48e864ae865744d1451b1776a14acfa422e8a115.zip | |
random: Avoid open-coded use of ratelimit_state structure's ->missed field
The _credit_init_bits() 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_get_miss() and ratelimit_state_inc_miss() functions
instead of directly accessing the ->missed field.
Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Cc: "Theodore Ts'o" <[email protected]>
"Jason A. Donenfeld" <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
