1 | // SPDX-License-Identifier: MIT |
---|---|
2 | /* |
3 | * Copyright © 2020 Intel Corporation |
4 | */ |
5 | |
6 | #include <linux/kernel.h> |
7 | |
8 | #include "i915_config.h" |
9 | #include "i915_utils.h" |
10 | |
11 | unsigned long |
12 | i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context) |
13 | { |
14 | if (CONFIG_DRM_I915_FENCE_TIMEOUT && context) |
15 | return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT); |
16 | |
17 | return 0; |
18 | } |
19 |