• C
    drm/i915/gvt: Use sched_lock to protect gvt scheduler logic. · 9a512e23
    Colin Xu 提交于
    The scheduler lock(gvt->sched_lock) is used to protect gvt
    scheduler logic, including the gvt scheduler structure(gvt->scheduler
    and per vgpu schedule data(vgpu->sched_data, vgpu->sched_ctl).
    
    v9:
      - Change commit author since the patches are improved a lot compared
        with original version.
        Original author: Pei Zhang <pei.zhang@intel.com>
      - Rebase to latest gvt-staging.
    v8:
      - Correct coding wqstyle.
      - Rebase to latest gvt-staging.
    v7:
      - Remove gtt_lock since already proteced by gvt_lock and vgpu_lock.
    v6:
      - Rebase to latest gvt-staging.
    v5:
      - Rebase to latest gvt-staging.
    v4:
      - Rebase to latest gvt-staging.
    v3: update to latest code base
    Signed-off-by: NPei Zhang <pei.zhang@intel.com>
    Signed-off-by: NColin Xu <colin.xu@intel.com>
    Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
    9a512e23
scheduler.c 40.5 KB