FreeBSD/sys/dev/drm2/i915/intel_pm.c
/**
 * i915_gpu_turbo_disable - disable graphics turbo
 *
 * Disable graphics turbo by resetting the max frequency and setting the
 * current frequency to the default.
 */
disable graphics turbo
Disable graphics turbo by resetting the max frequency and setting the
current frequency to the default.
disable graphics turbo Disable graphics turbo by resetting the max frequency and setting the current frequency to the default .
bool i915_gpu_turbo_disable(void)
{
	struct drm_i915_private *dev_priv;
	bool ret = true;
	mtx_lock(&mchdev_lock);
	if (!i915_mch_dev) {
		ret = false;
		goto out_unlock;
	}
	dev_priv = i915_mch_dev;
	dev_priv->ips.max_delay = dev_priv->ips.fstart;
	if (!ironlake_set_drps(dev_priv->dev, dev_priv->ips.fstart))
		ret = false;
out_unlock:
	mtx_unlock(&mchdev_lock);
	return ret;
}
bool i915_gpu_turbo_disable ( void ) { struct drm_i915_private * dev_priv ; bool ret = true ; mtx_lock ( & mchdev_lock ) ; if ( ! i915_mch_dev ) { ret = false ; goto out_unlock ; } dev_priv = i915_mch_dev ; dev_priv -> ips . max_delay = dev_priv -> ips . fstart ; if ( ! ironlake_set_drps ( dev_priv -> dev , dev_priv -> ips . fstart ) ) ret = false ; out_unlock : mtx_unlock ( & mchdev_lock ) ; return ret ; }
i915_gpu_turbo_disable - disable graphics turbo
 Disable graphics turbo by resetting the max frequency and setting the
 current frequency to the default.
i915_gpu_turbo_disable - disable graphics turbo Disable graphics turbo by resetting the max frequency and setting the current frequency to the default .