drm/msm/sde: Stub out debug log macros and compile them out

These debug logs are everywhere and not only bloat the driver, but add
latency everywhere they're used because they're not compiled out. Since
they serve no purpose for us as we're not debugging SDE, compile them
out.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
fourteen
Sultan Alsawaf 4 years ago committed by Jenna
parent ce5c89bb26
commit abf177d5d3
  1. 21
      drivers/gpu/drm/msm/sde/sde_kms.h

@ -47,36 +47,21 @@
* @fmt: Pointer to format string
*/
#define SDE_DEBUG(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
DRM_DEBUG(fmt, ##__VA_ARGS__); \
else \
pr_debug(fmt, ##__VA_ARGS__); \
} while (0)
no_printk(fmt, ##__VA_ARGS__)
/**
* SDE_INFO - macro for kms/plane/crtc/encoder/connector logs
* @fmt: Pointer to format string
*/
#define SDE_INFO(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_KMS)) \
DRM_INFO(fmt, ##__VA_ARGS__); \
else \
pr_info(fmt, ##__VA_ARGS__); \
} while (0)
no_printk(fmt, ##__VA_ARGS__)
/**
* SDE_DEBUG_DRIVER - macro for hardware driver logging
* @fmt: Pointer to format string
*/
#define SDE_DEBUG_DRIVER(fmt, ...) \
do { \
if (unlikely(drm_debug & DRM_UT_DRIVER)) \
DRM_ERROR(fmt, ##__VA_ARGS__); \
else \
pr_debug(fmt, ##__VA_ARGS__); \
} while (0)
no_printk(fmt, ##__VA_ARGS__)
#define SDE_ERROR(fmt, ...) pr_err("[sde error]" fmt, ##__VA_ARGS__)

Loading…
Cancel
Save