]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Align the retire_requests worker to the nearest second
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Oct 2012 16:02:57 +0000 (17:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Oct 2012 16:45:21 +0000 (18:45 +0200)
commit02354a72713699e5a3d3990500c586d035b2bcf7
tree4a2d68e7a15a1befceebb044fdf03e241a6329d5
parentb7236e10edb7eecaeb7b8791f6097cea137d826c
drm/i915: Align the retire_requests worker to the nearest second

By using round_jiffies() we can align the wakeup of our worker to the
nearest second in order to batch wakeups and reduce system load, which
is useful for unimportant coarse tasks like our retire_requests.

v2: round_jiffies_relative() already returns the relative timeout value,
so no need to incorrectly perform the subtraction twice. The timer
interface still leaves the possibility for the value of jiffies to
change be we program the timer.

Suggested-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c