Commit 6c13c825 authored by Jani Nikula's avatar Jani Nikula

drm/i915: move I915_IDLE_ENGINES_TIMEOUT next to its only user

Declutter i915_drv.h. If there's ever a need to use this in more than
one place, we can figure out a better spot then. For now, this seems
easiest.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230118131538.3558599-2-jani.nikula@intel.com
parent ff1e93e9
...@@ -648,6 +648,9 @@ i915_drop_caches_get(void *data, u64 *val) ...@@ -648,6 +648,9 @@ i915_drop_caches_get(void *data, u64 *val)
return 0; return 0;
} }
#define I915_IDLE_ENGINES_TIMEOUT (200) /* in ms */
static int static int
gt_drop_caches(struct intel_gt *gt, u64 val) gt_drop_caches(struct intel_gt *gt, u64 val)
{ {
......
...@@ -193,8 +193,6 @@ struct i915_gem_mm { ...@@ -193,8 +193,6 @@ struct i915_gem_mm {
u32 shrink_count; u32 shrink_count;
}; };
#define I915_IDLE_ENGINES_TIMEOUT (200) /* in ms */
#define HAS_HW_SAGV_WM(i915) (DISPLAY_VER(i915) >= 13 && !IS_DGFX(i915)) #define HAS_HW_SAGV_WM(i915) (DISPLAY_VER(i915) >= 13 && !IS_DGFX(i915))
struct i915_virtual_gpu { struct i915_virtual_gpu {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment