[Intel-gfx] [PATCH 7/7] drm/i915: move GT_FREQUENCY_MULTIPLIER and GEN9_FREQ_SCALER to intel_rps.h

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Wed Jan 18 13:28:09 UTC 2023



On 18/01/2023 13:15, Jani Nikula wrote:
> Declutter i915_drv.h.
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---
>   drivers/gpu/drm/i915/gt/intel_rps.h | 3 +++
>   drivers/gpu/drm/i915/i915_drv.h     | 3 ---
>   2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/intel_rps.h b/drivers/gpu/drm/i915/gt/intel_rps.h
> index 9e1cad9ba0e9..c622962c6bef 100644
> --- a/drivers/gpu/drm/i915/gt/intel_rps.h
> +++ b/drivers/gpu/drm/i915/gt/intel_rps.h
> @@ -12,6 +12,9 @@
>   struct i915_request;
>   struct drm_printer;
>   
> +#define GT_FREQUENCY_MULTIPLIER 50
> +#define GEN9_FREQ_SCALER 3
> +
>   void intel_rps_init_early(struct intel_rps *rps);
>   void intel_rps_init(struct intel_rps *rps);
>   void intel_rps_sanitize(struct intel_rps *rps);
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index d12c7932677a..2a6e212f8824 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -904,9 +904,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
>   #define NUM_L3_SLICES(dev_priv) (IS_HSW_GT3(dev_priv) ? \
>   				 2 : HAS_L3_DPF(dev_priv))
>   
> -#define GT_FREQUENCY_MULTIPLIER 50
> -#define GEN9_FREQ_SCALER 3
> -
>   #define INTEL_NUM_PIPES(dev_priv) (hweight8(RUNTIME_INFO(dev_priv)->pipe_mask))
>   
>   #define HAS_DISPLAY(dev_priv) (RUNTIME_INFO(dev_priv)->pipe_mask != 0)

Acked-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the Intel-gfx mailing list