diff options
| author | Jani Nikula <[email protected]> | 2019-10-01 14:06:14 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2019-10-02 13:28:55 +0000 |
| commit | f0a8f533adc202f7dc83961c85187794eaed9cec (patch) | |
| tree | 5600de76c2e33d6f637a69a56f92c834676d9894 /drivers/gpu/drm/drm_atomic_uapi.c | |
| parent | drm/print: move drm_debug variable to drm_print.[ch] (diff) | |
| download | kernel-f0a8f533adc202f7dc83961c85187794eaed9cec.tar.gz kernel-f0a8f533adc202f7dc83961c85187794eaed9cec.zip | |
drm/print: add drm_debug_enabled()
Add helper to check if a drm debug category is enabled. Convert drm core
to use it. No functional changes.
v2: Move unlikely() to drm_debug_enabled() (Eric)
v3: Keep unlikely() when combined with other conditions (Eric)
Cc: Eric Engestrom <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_atomic_uapi.c')
| -rw-r--r-- | drivers/gpu/drm/drm_atomic_uapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c index 5a5b42db6f2a..b4b6b1f8e49d 100644 --- a/drivers/gpu/drm/drm_atomic_uapi.c +++ b/drivers/gpu/drm/drm_atomic_uapi.c @@ -1406,7 +1406,7 @@ retry: } else if (arg->flags & DRM_MODE_ATOMIC_NONBLOCK) { ret = drm_atomic_nonblocking_commit(state); } else { - if (unlikely(drm_debug & DRM_UT_STATE)) + if (drm_debug_enabled(DRM_UT_STATE)) drm_atomic_print_state(state); ret = drm_atomic_commit(state); |
