]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/hw_error: Cleanup array map
authorRaag Jadav <raag.jadav@intel.com>
Sat, 2 May 2026 18:01:43 +0000 (23:31 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 5 May 2026 17:48:50 +0000 (10:48 -0700)
commitead21111e275c89828dc13ac8cfa657971ec874c
tree00c8d01000f8562b369ff3e36d1d58a84652abaa
parent7d9c39cfb31ff389490ca1308767c2807a9829a6
drm/xe/hw_error: Cleanup array map

xe_hw_error_map[] is not worth the memory needed to map two components.
Clean it up and use switch() instead, which also, in turn, simplifies
bounds checking logic.

add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-425 (-425)
Function                                     old     new   delta
xe_hw_error_map                              136       -    -136
xe_hw_error_irq_handler                     3728    3439    -289
Total: Before=7700, After=7275, chg -5.52%

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patch.msgid.link/20260502180143.1450266-1-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_hw_error.c