mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Jani Nikula](/assets/img/avatar_default.png)
We already have i915_config.c. Add the i915_config.h counterpart, and declutter i915_drv.h in the process. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Acked-by: Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230118131538.3558599-1-jani.nikula@intel.com
18 lines
376 B
C
18 lines
376 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include "i915_config.h"
|
|
#include "i915_utils.h"
|
|
|
|
unsigned long
|
|
i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context)
|
|
{
|
|
if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)
|
|
return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
|
|
|
|
return 0;
|
|
}
|