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
8#include <linux/types.h>8#include <linux/types.h>
9#include <linux/time.h>9#include <linux/time.h>
10#include <linux/timex.h>10#include <linux/timex.h>
11#include <vdso/jiffies.h>
11#include <asm/param.h> /* for HZ */12#include <asm/param.h> /* for HZ */
12#include <generated/timeconst.h>13#include <generated/timeconst.h>
13 14
@@ -59,9 +60,6 @@ · 45 unmodified lines
59 60
60extern int register_refined_jiffies(long clock_tick_rate);61extern int register_refined_jiffies(long clock_tick_rate);
61 62
62/* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
63#define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ)
64
65/* TICK_USEC is the time between ticks in usec assuming SHIFTED_HZ */63/* TICK_USEC is the time between ticks in usec assuming SHIFTED_HZ */
66#define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ)64#define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ)
67 65