]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Clean up debug macros
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Oct 2020 07:46:56 +0000 (09:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Oct 2020 21:19:30 +0000 (17:19 -0400)
commit46f9a8aa2de5dcee769e80425c991d3e90ce4fbf
treeff725b1d2a9dfc979236a4f2d46df3452def3f98
parentea00f345a360a94378c65b9d8c1c8b487ad7dd9e
drm/amd/display: Clean up debug macros

This patch simplifies the ASSERT*() and BREAK_TO_DEBUGGER() macros:
- Move the dependency check of CONFIG_KGDB into Kconfig
- Unify the kgdb_breakpoint() call
- Drop the non-existing CONFIG_HAVE_KGDB

Also align the behavior of ASSERT() macro in both cases with and
without CONFIG_DEBUG_KERNEL_DC.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/Kconfig
drivers/gpu/drm/amd/display/dc/os_types.h