FreeBSD/sys/dev/drm2/i915/intel_pm.c
/*
 * Generally this is called implicitly by the register read function. However,
 * if some sequence requires the GT to not power down then this function should
 * be called at the beginning of the sequence followed by a call to
 * gen6_gt_force_wake_put() at the end of the sequence.
 */
Generally this is called implicitly by the register read function. However,
if some sequence requires the GT to not power down then this function should
be called at the beginning of the sequence followed by a call to
gen6_gt_force_wake_put() at the end of the sequence.
Generally this is called implicitly by the register read function . However if some sequence requires the GT to not power down then this function should be called at the beginning of the sequence followed by a call to gen6_gt_force_wake_put () at the end of the sequence .
void gen6_gt_force_wake_get(struct drm_i915_private *dev_priv)
{
	mtx_lock(&dev_priv->gt_lock);
	if (dev_priv->forcewake_count++ == 0)
		dev_priv->gt.force_wake_get(dev_priv);
	mtx_unlock(&dev_priv->gt_lock);
}
void gen6_gt_force_wake_get ( struct drm_i915_private * dev_priv ) { mtx_lock ( & dev_priv -> gt_lock ) ; if ( dev_priv -> forcewake_count ++ == 0 ) dev_priv -> gt . force_wake_get ( dev_priv ) ; mtx_unlock ( & dev_priv -> gt_lock ) ; }
Generally this is called implicitly by the register read function.
Generally this is called implicitly by the register read function .