File Index
Files and directories
Sign in
FILE

i915_jiffies.h

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/drm/i915/i915_jiffies.h C
 1/* SPDX-License-Identifier: MIT */
 2/* Copyright © 2025 Intel Corporation */
 3
 4#ifndef __I915_JIFFIES_H__
 5#define __I915_JIFFIES_H__
 6
 7#include <linux/jiffies.h>
 8
 9static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
10{
11	unsigned long j = msecs_to_jiffies(m);
12
13	return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1);
14}
15
16#endif /* __I915_JIFFIES_H__ */
~/ Read-only file preview.