diff options
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 32bd102c32b6..cf20187eee0a 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -125,6 +125,9 @@ | |||
125 | #ifndef NSEC_PER_SEC | 125 | #ifndef NSEC_PER_SEC |
126 | # define NSEC_PER_SEC 1000000000ULL | 126 | # define NSEC_PER_SEC 1000000000ULL |
127 | #endif | 127 | #endif |
128 | #ifndef NSEC_PER_USEC | ||
129 | # define NSEC_PER_USEC 1000ULL | ||
130 | #endif | ||
128 | 131 | ||
129 | static inline unsigned long long rdclock(void) | 132 | static inline unsigned long long rdclock(void) |
130 | { | 133 | { |