]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET enum instead of magic number
authorZhanjun Dong <zhanjun.dong@intel.com>
Tue, 10 Mar 2026 22:50:36 +0000 (18:50 -0400)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 14 Mar 2026 01:04:15 +0000 (18:04 -0700)
commita7f607610da721f77db358b09be8091e60bd8e89
treea395482796efb206fa3957f4535a5d3d3033c3f6
parente25ba41c8227c5393c16e4aab398076014bd345f
drm/xe: Use XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET enum instead of magic number

Replace the magic number 2 with the proper enum value
XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET for better code readability
and maintainability.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260310225039.1320161-5-zhanjun.dong@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c