mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
a460513ed4
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>
16 lines
426 B
C
16 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 */
|