mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
drm/i915/request: 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/4fe658e6d8483e44d4fff579bc426e627487f6ca.1738746904.git.namcao@linutronix.de
This commit is contained in:
parent
f97e1d787f
commit
1a2ff5c305
@ -293,8 +293,7 @@ static void __rq_init_watchdog(struct i915_request *rq)
|
|||||||
{
|
{
|
||||||
struct i915_request_watchdog *wdg = &rq->watchdog;
|
struct i915_request_watchdog *wdg = &rq->watchdog;
|
||||||
|
|
||||||
hrtimer_init(&wdg->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
hrtimer_setup(&wdg->timer, __rq_watchdog_expired, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
|
||||||
wdg->timer.function = __rq_watchdog_expired;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __rq_arm_watchdog(struct i915_request *rq)
|
static void __rq_arm_watchdog(struct i915_request *rq)
|
||||||
|
Loading…
Reference in New Issue
Block a user