mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
![Andy Shevchenko](/assets/img/avatar_default.png)
We have currently three users of the PSEC_PER_SEC each of them defining it individually. Instead, move it to time64.h to be available for everyone. There is a new user coming with the same constant in use. It will also make its life easier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: David S. Miller <davem@davemloft.net>
15 lines
426 B
C
15 lines
426 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __VDSO_TIME64_H
|
|
#define __VDSO_TIME64_H
|
|
|
|
/* Parameters used to convert the timespec values: */
|
|
#define MSEC_PER_SEC 1000L
|
|
#define USEC_PER_MSEC 1000L
|
|
#define NSEC_PER_USEC 1000L
|
|
#define NSEC_PER_MSEC 1000000L
|
|
#define USEC_PER_SEC 1000000L
|
|
#define NSEC_PER_SEC 1000000000L
|
|
#define PSEC_PER_SEC 1000000000000LL
|
|
#define FSEC_PER_SEC 1000000000000000LL
|
|
|
|
#endif /* __VDSO_TIME64_H */
|