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