aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/trace/ftrace.txt14
-rw-r--r--include/linux/timekeeping.h6
-rw-r--r--kernel/trace/trace.c2
3 files changed, 4 insertions, 18 deletions
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt
index d4601df6e72e..bf89f98bfdb9 100644
--- a/Documentation/trace/ftrace.txt
+++ b/Documentation/trace/ftrace.txt
@@ -449,17 +449,9 @@ of ftrace. Here is a list of some of the key files:
449 which is montonic but is not subject to any rate adjustments 449 which is montonic but is not subject to any rate adjustments
450 and ticks at the same rate as the hardware clocksource. 450 and ticks at the same rate as the hardware clocksource.
451 451
452 boot: This is the boot clock (CLOCK_BOOTTIME) and is based on the 452 boot: Same as mono. Used to be a separate clock which accounted
453 fast monotonic clock, but also accounts for time spent in 453 for the time spent in suspend while CLOCK_MONOTONIC did
454 suspend. Since the clock access is designed for use in 454 not.
455 tracing in the suspend path, some side effects are possible
456 if clock is accessed after the suspend time is accounted before
457 the fast mono clock is updated. In this case, the clock update
458 appears to happen slightly sooner than it normally would have.
459 Also on 32-bit systems, it's possible that the 64-bit boot offset
460 sees a partial update. These effects are rare and post
461 processing should be able to handle them. See comments in the
462 ktime_get_boot_fast_ns() function for more information.
463 455
464 To set a clock, simply echo the clock name into this file. 456 To set a clock, simply echo the clock name into this file.
465 457
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
index abb396731332..82c219dfd3bb 100644
--- a/include/linux/timekeeping.h
+++ b/include/linux/timekeeping.h
@@ -113,12 +113,6 @@ extern u64 ktime_get_mono_fast_ns(void);
113extern u64 ktime_get_raw_fast_ns(void); 113extern u64 ktime_get_raw_fast_ns(void);
114extern u64 ktime_get_real_fast_ns(void); 114extern u64 ktime_get_real_fast_ns(void);
115 115
116/* Clock BOOTTIME compatibility wrappers */
117static inline u64 ktime_get_boot_fast_ns(void)
118{
119 return ktime_get_mono_fast_ns();
120}
121
122/* 116/*
123 * timespec64 interfaces utilizing the ktime based ones 117 * timespec64 interfaces utilizing the ktime based ones
124 */ 118 */
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 20a2300ae4e8..300f4ea39646 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1164,7 +1164,7 @@ static struct {
1164 { trace_clock, "perf", 1 }, 1164 { trace_clock, "perf", 1 },
1165 { ktime_get_mono_fast_ns, "mono", 1 }, 1165 { ktime_get_mono_fast_ns, "mono", 1 },
1166 { ktime_get_raw_fast_ns, "mono_raw", 1 }, 1166 { ktime_get_raw_fast_ns, "mono_raw", 1 },
1167 { ktime_get_boot_fast_ns, "boot", 1 }, 1167 { ktime_get_mono_fast_ns, "boot", 1 },
1168 ARCH_TRACE_CLOCKS 1168 ARCH_TRACE_CLOCKS
1169}; 1169};
1170 1170