Linux Audio

Check our new training course

Loading...
v6.13.7
 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
11unsigned long
12i915_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}
v5.9
 1// SPDX-License-Identifier: MIT
 2/*
 3 * Copyright © 2020 Intel Corporation
 4 */
 5
 6#include "i915_drv.h"
 
 
 
 7
 8unsigned long
 9i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context)
10{
11	if (context && IS_ACTIVE(CONFIG_DRM_I915_FENCE_TIMEOUT))
12		return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
13
14	return 0;
15}