]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/display: Remove outdated struct_mutex comments
authorLuiz Otavio Mello <luiz.mello@estudante.ufscar.br>
Mon, 8 Sep 2025 13:15:14 +0000 (09:15 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 9 Sep 2025 14:39:13 +0000 (10:39 -0400)
The struct_mutex will be removed from the DRM subsystem, as it was a
legacy BKL that was only used by i915 driver. After review, it was
concluded that its usage was no longer necessary

This patch update a comment about struct_mutex in i915/display, in order
to prevent future misunderstandings.

* intel_fbc.c: Removed the statement that intel_fbc->lock is the inner
  lock when overlapping with struct_mutex, since struct_mutex is no
  longer used anywhere in the driver.

Signed-off-by: Luiz Otavio Mello <luiz.mello@estudante.ufscar.br>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250908131518.36625-7-luiz.mello@estudante.ufscar.br
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c

index 06c35c7ab4e27f0ca88714e966613e673851499d..0d380c825791289910d8a8dd4bfc188878203387 100644 (file)
@@ -98,11 +98,7 @@ struct intel_fbc {
        struct intel_display *display;
        const struct intel_fbc_funcs *funcs;
 
-       /*
-        * This is always the inner lock when overlapping with
-        * struct_mutex and it's the outer lock when overlapping
-        * with stolen_lock.
-        */
+       /* This is always the outer lock when overlapping with stolen_lock */
        struct mutex lock;
        unsigned int busy_bits;