diff options
author | Jani Nikula <[email protected]> | 2023-01-18 15:15:33 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2023-01-20 10:14:09 +0200 |
commit | 6c13c8250c00a92067dba70d26c432eac7fcb357 (patch) | |
tree | 91afd811b23f59494d62178c385558208445e10f | |
parent | ff1e93e924f236ab7f5b445820bf4e81cf9845b7 (diff) |
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: Jani Nikula <[email protected]>
Acked-by: Tvrtko Ursulin <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 6c7ac73b69a5..3279de32111b 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -648,6 +648,9 @@ i915_drop_caches_get(void *data, u64 *val) return 0; } + +#define I915_IDLE_ENGINES_TIMEOUT (200) /* in ms */ + static int gt_drop_caches(struct intel_gt *gt, u64 val) { diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index c2cf1de017b5..6e7691f51961 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -193,8 +193,6 @@ struct i915_gem_mm { u32 shrink_count; }; -#define I915_IDLE_ENGINES_TIMEOUT (200) /* in ms */ - #define HAS_HW_SAGV_WM(i915) (DISPLAY_VER(i915) >= 13 && !IS_DGFX(i915)) struct i915_virtual_gpu { |