19 lines
376 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
// SPDX-License-Identifier: MIT
/*
* Copyright © 2020 Intel Corporation
*/
2026-01-29 22:25:33 +08:00
#include <linux/kernel.h>
#include "i915_config.h"
#include "i915_utils.h"
2026-01-21 18:59:54 +08:00
unsigned long
i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context)
{
2026-01-29 22:25:33 +08:00
if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)
2026-01-21 18:59:54 +08:00
return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
return 0;
}