History

linux/jiffies.h: Extract common header for vDSO

The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Split jiffies.h into linux and common headers to make the latter suitable for inclusion in the vDSO library.

Vincenzo Frascino committed 6 years ago

Commit 97b01d21 parent b72a9c52 files · +12 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/jiffies.h+1−3
@@ -8,6 +8,7 @@ · 7 unmodified lines
88 #include <linux/types.h>
99 #include <linux/time.h>
1010 #include <linux/timex.h>
11+#include <vdso/jiffies.h>
1112 #include <asm/param.h> /* for HZ */
1213 #include <generated/timeconst.h>
1314
@@ -59,9 +60,6 @@ · 45 unmodified lines
5960
6061 extern int register_refined_jiffies(long clock_tick_rate);
6162
62−/* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
63−#define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ)
64−
6563 /* TICK_USEC is the time between ticks in usec assuming SHIFTED_HZ */
6664 #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ)
6765