xref: /openbmc/linux/include/vdso/jiffies.h (revision ead5d1f4d877e92c051e1a1ade623d0d30e71619)
1*97b01d2eSVincenzo Frascino /* SPDX-License-Identifier: GPL-2.0 */
2*97b01d2eSVincenzo Frascino #ifndef __VDSO_JIFFIES_H
3*97b01d2eSVincenzo Frascino #define __VDSO_JIFFIES_H
4*97b01d2eSVincenzo Frascino 
5*97b01d2eSVincenzo Frascino #include <asm/param.h>			/* for HZ */
6*97b01d2eSVincenzo Frascino #include <vdso/time64.h>
7*97b01d2eSVincenzo Frascino 
8*97b01d2eSVincenzo Frascino /* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
9*97b01d2eSVincenzo Frascino #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ)
10*97b01d2eSVincenzo Frascino 
11*97b01d2eSVincenzo Frascino #endif /* __VDSO_JIFFIES_H */
12