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 9 static 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__ */ 17