summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_config.c
blob: 9e13b1be407cc995de2c485768b98c1bfcd6a359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT
/*
 * Copyright © 2020 Intel Corporation
 */

#include <linux/kernel.h>

#include "i915_config.h"
#include "i915_jiffies.h"

unsigned long i915_fence_context_timeout(u64 context)
{
	if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)
		return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);

	return 0;
}