mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 06:48:33 +07:00
99f2eb9667
And also rename to intel_gt_pm_init_early and make it operate on gt. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190621070811.7006-5-tvrtko.ursulin@linux.intel.com
23 lines
415 B
C
23 lines
415 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#include "i915_drv.h"
|
|
|
|
#include "intel_gt.h"
|
|
#include "intel_gt_pm.h"
|
|
|
|
void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private *i915)
|
|
{
|
|
gt->i915 = i915;
|
|
gt->uncore = &i915->uncore;
|
|
|
|
INIT_LIST_HEAD(>->active_rings);
|
|
INIT_LIST_HEAD(>->closed_vma);
|
|
|
|
spin_lock_init(>->closed_lock);
|
|
|
|
intel_gt_pm_init_early(gt);
|
|
}
|