blob: 18a4eaea897ad97f4059ba06911ffe84270c0084 [file] [edit]
/* SPDX-License-Identifier: MIT */
/* Copyright © 2025 Intel Corporation */
#ifndef __I915_JIFFIES_H__
#define __I915_JIFFIES_H__
#include <linux/jiffies.h>
static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
{
unsigned long j = msecs_to_jiffies(m);
return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1);
}
#endif /* __I915_JIFFIES_H__ */