]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/nouveau: Remove surplus struct member
authorPhilipp Stanner <phasta@kernel.org>
Fri, 1 Aug 2025 07:45:32 +0000 (09:45 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Sat, 9 Aug 2025 11:13:43 +0000 (13:13 +0200)
struct nouveau_channel contains the member 'accel_done' and a forgotten
TODO which hints at that mechanism being removed in the "near future".
Since that variable is read nowhere anymore, this "near future" is now.

Remove the variable and the TODO.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250801074531.79237-2-phasta@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nouveau/nouveau_chan.h
drivers/gpu/drm/nouveau/nouveau_dma.h

index 561877725aac81c52ed2892e64f499d2272babf5..bb34b0a6082d880c58536a6350402b4bfd05ac5d 100644 (file)
@@ -31,8 +31,6 @@ struct nouveau_channel {
                u64 addr;
        } push;
 
-       /* TODO: this will be reworked in the near future */
-       bool accel_done;
        void *fence;
        struct {
                int max;
index 0e27b76d1e1c896988cc338d324746580e4378af..c25ef9a54b9fbee9ba5da54dacdff8ad150bdbc7 100644 (file)
@@ -90,7 +90,6 @@ FIRE_RING(struct nouveau_channel *chan)
 {
        if (chan->dma.cur == chan->dma.put)
                return;
-       chan->accel_done = true;
 
        WRITE_PUT(chan->dma.cur);