]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/gvt: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:20 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:05 +0000 (11:19 +0100)
commit9892287897ca0c267a3071f7f6fa5d82126e29e9
treede8f13cf567522584b9d1c70b6a8163f910cc3ad
parent0592bb39e3a33ebcc956c1730fb2c756ebc71fdb
drm/i915/gvt: Switch to use hrtimer_setup()

hrtimer_setup() takes the callback function pointer as argument and
initializes the timer completely.

Replace hrtimer_init() and the open coded initialization of
hrtimer::function with the new setup mechanism.

Patch was created by using Coccinelle.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/all/9af55b7d0918bb3642c6392fbb4800d8ea7c9c50.1738746904.git.namcao@linutronix.de
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/sched_policy.c