FreeBSD/sys/dev/drm2/i915/intel_pm.c
/**
 * i915_read_mch_val - return value for IPS use
 *
 * Calculate and return a value for the IPS driver to use when deciding whether
 * we have thermal and power headroom to increase CPU or GPU power budget.
 */
return value for IPS use
Calculate and return a value for the IPS driver to use when deciding whether
we have thermal and power headroom to increase CPU or GPU power budget.
return value for IPS use Calculate and return a value for the IPS driver to use when deciding whether we have thermal and power headroom to increase CPU or GPU power budget .
unsigned long i915_read_mch_val(void)
{
	struct drm_i915_private *dev_priv;
	unsigned long chipset_val, graphics_val, ret = 0;
	mtx_lock(&mchdev_lock);
	if (!i915_mch_dev)
		goto out_unlock;
	dev_priv = i915_mch_dev;
	chipset_val = __i915_chipset_val(dev_priv);
	graphics_val = __i915_gfx_val(dev_priv);
	ret = chipset_val + graphics_val;
out_unlock:
	mtx_unlock(&mchdev_lock);
	return ret;
}
unsigned long i915_read_mch_val ( void ) { struct drm_i915_private * dev_priv ; unsigned long chipset_val , graphics_val , ret = 0 ; mtx_lock ( & mchdev_lock ) ; if ( ! i915_mch_dev ) goto out_unlock ; dev_priv = i915_mch_dev ; chipset_val = __i915_chipset_val ( dev_priv ) ; graphics_val = __i915_gfx_val ( dev_priv ) ; ret = chipset_val + graphics_val ; out_unlock : mtx_unlock ( & mchdev_lock ) ; return ret ; }
i915_read_mch_val - return value for IPS use
 Calculate and return a value for the IPS driver to use when deciding whether
 we have thermal and power headroom to increase CPU or GPU power budget.
i915_read_mch_val - return value for IPS use Calculate and return a value for the IPS driver to use when deciding whether we have thermal and power headroom to increase CPU or GPU power budget .