]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panthor: Kill panthor_sched_immediate_tick()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 28 Nov 2025 09:48:39 +0000 (10:48 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 28 Nov 2025 09:56:44 +0000 (10:56 +0100)
It's only used in a couple places and everyone else is just using
sched_queue_delayed_work(sched, tick, 0) directly, so let's make
this consistent.

v2:
- Add R-b

v3:
- Collect R-b

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: https://patch.msgid.link/20251128094839.3856402-9-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_sched.c

index 7759a8a8565e8e67368952472da356f179557cce..389d508b3848eff10cbbc70fe081fd4e5afd3550 100644 (file)
@@ -2753,13 +2753,6 @@ static void panthor_group_start(struct panthor_group *group)
        group_put(group);
 }
 
-static void panthor_sched_immediate_tick(struct panthor_device *ptdev)
-{
-       struct panthor_scheduler *sched = ptdev->scheduler;
-
-       sched_queue_delayed_work(sched, tick, 0);
-}
-
 /**
  * panthor_sched_report_mmu_fault() - Report MMU faults to the scheduler.
  */
@@ -2767,13 +2760,13 @@ void panthor_sched_report_mmu_fault(struct panthor_device *ptdev)
 {
        /* Force a tick to immediately kill faulty groups. */
        if (ptdev->scheduler)
-               panthor_sched_immediate_tick(ptdev);
+               sched_queue_delayed_work(ptdev->scheduler, tick, 0);
 }
 
 void panthor_sched_resume(struct panthor_device *ptdev)
 {
        /* Force a tick to re-evaluate after a resume. */
-       panthor_sched_immediate_tick(ptdev);
+       sched_queue_delayed_work(ptdev->scheduler, tick, 0);
 }
 
 void panthor_sched_suspend(struct panthor_device *ptdev)