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