mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
drm/xe/rps: build RPS as part of xe
Reduce the conditional compilation in i915 by building intel_display_rps.c as part of the xe module. This doesn't actually enable RPS on xe, because there's no parent interface implementation on xe side, but it's a step in the right direction. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/93df0bb727fce14aa9a542dbd2c0826a0fa0a16f.1763370931.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -13,7 +13,6 @@ struct drm_crtc;
|
||||
struct intel_atomic_state;
|
||||
struct intel_display;
|
||||
|
||||
#ifdef I915
|
||||
void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
||||
struct dma_fence *fence);
|
||||
void intel_display_rps_mark_interactive(struct intel_display *display,
|
||||
@@ -22,25 +21,5 @@ void intel_display_rps_mark_interactive(struct intel_display *display,
|
||||
void ilk_display_rps_enable(struct intel_display *display);
|
||||
void ilk_display_rps_disable(struct intel_display *display);
|
||||
void ilk_display_rps_irq_handler(struct intel_display *display);
|
||||
#else
|
||||
static inline void intel_display_rps_boost_after_vblank(struct drm_crtc *crtc,
|
||||
struct dma_fence *fence)
|
||||
{
|
||||
}
|
||||
static inline void intel_display_rps_mark_interactive(struct intel_display *display,
|
||||
struct intel_atomic_state *state,
|
||||
bool interactive)
|
||||
{
|
||||
}
|
||||
static inline void ilk_display_rps_enable(struct intel_display *display)
|
||||
{
|
||||
}
|
||||
static inline void ilk_display_rps_disable(struct intel_display *display)
|
||||
{
|
||||
}
|
||||
static inline void ilk_display_rps_irq_handler(struct intel_display *display)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INTEL_DISPLAY_RPS_H__ */
|
||||
|
||||
@@ -255,6 +255,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
|
||||
i915-display/intel_display_power_map.o \
|
||||
i915-display/intel_display_power_well.o \
|
||||
i915-display/intel_display_rpm.o \
|
||||
i915-display/intel_display_rps.o \
|
||||
i915-display/intel_display_trace.o \
|
||||
i915-display/intel_display_utils.o \
|
||||
i915-display/intel_display_wa.o \
|
||||
|
||||
Reference in New Issue
Block a user