[PATCH v5 1/8] drm/i915/gvt: use hrtimer replace delayed_work in scheduler

Tian, Kevin kevin.tian at intel.com
Wed Mar 29 02:46:19 UTC 2017


> From: Ping Gao
> Sent: Tuesday, March 28, 2017 2:48 PM
> 
> Currently the scheduler is triggered by delayed_work, which doesn't provide
> precision at microsecond level. Move to hrtimer instead for more accurate
> control.
> 
> Signed-off-by: Ping Gao <ping.a.gao at intel.com>

Reviewed-by: Kevin Tian <kevin.tian at intel.com>, with a small comment

> -#define GVT_DEFAULT_TIME_SLICE (msecs_to_jiffies(1))
> +#define GVT_DEFAULT_TIME_SLICE 1000000
> 

better append a comment like /* in nanosecond */


More information about the intel-gvt-dev mailing list