]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/hwmon: Use devm_mutex_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Sep 2025 13:42:17 +0000 (15:42 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 9 Sep 2025 13:31:13 +0000 (06:31 -0700)
commit7b77941724628e6171a286edbf04d67a1f1c1459
tree8481a2c2e69dc3517ac2e522c32d2f41ed7717f6
parente57ae80fe01a2b039c689b2d14fef51b1ebbd7f8
drm/xe/hwmon: Use devm_mutex_init()

Use devm_mutex_init() instead of hand-writing it.

This saves some LoC, improves readability and saves some space in the
generated .o file.

Before:
======
   text    data     bss     dec     hex filename
  36884   10296      64   47244    b88c drivers/gpu/drm/xe/xe_hwmon.o

After:
=====
   text    data     bss     dec     hex filename
  36651   10224      64   46939    b75b drivers/gpu/drm/xe/xe_hwmon.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://lore.kernel.org/r/989e96369e9e1f8a44b816962917ec76877c912d.1757252520.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_hwmon.c