]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gt: Always reschedule the new heartbeat
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Mar 2020 16:32:08 +0000 (16:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Mar 2020 18:26:15 +0000 (18:26 +0000)
commit500f9ac3025107a84e0c00d960a6c852efde83cc
treec71c2883e9ae177c63741c153369bfaacd35d903
parentba69fb165b034cd3615ae8607e8e075dd47dc5e8
drm/i915/gt: Always reschedule the new heartbeat

In order to better respond to new heartbeat intervals given via sysfs,
always reprogramme an active heartbeat upon change (i.e. use
mod_delayed_work to reschedule rather than queue_delayed_work which
ignores an already active work.)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200317163208.30010-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c