]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Trim set_timer_ms() intervals
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jun 2020 13:59:38 +0000 (14:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jun 2020 15:34:00 +0000 (16:34 +0100)
commitc6510d004ae33ad6b00f7af685a6e52388b86d13
treedc70d71d6fc604f8db90cdb273473335f6862032
parenteeffb70e8385dcb006eb0831195587e80633f95b
drm/i915: Trim set_timer_ms() intervals

Use the plain msec_to_jiffies() rather than the _timeout variant so we
round down and do not add an extra jiffy to our interval. For example,
with timeslicing we do not want to err on the longer side as any
fairness depends on catching hogging contexts on the GPU. Bring on
CFS.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200604135938.3975-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/i915_utils.c