summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-07-17 05:20:47 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-07-17 05:20:54 -0400
commit79d39bd7cec19ea03356652d7add5e99b4da3a97 (patch)
tree0c2682a637aca3b17709b84d8b1ed866a4725b23 /include
parent2cea78f5cc47800e46f548cb723cc7fe11b5fba6 (diff)
Update bcachefs sources to d82da7126f fixup! bcachefs: for_each_btree_key2()
Diffstat (limited to 'include')
-rw-r--r--include/linux/jiffies.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h
index c3f3e1f2..4fd3b68d 100644
--- a/include/linux/jiffies.h
+++ b/include/linux/jiffies.h
@@ -81,6 +81,11 @@ static inline u64 local_clock(void)
return sched_clock();
}
+static inline u64 ktime_get_ns(void)
+{
+ return sched_clock();
+}
+
#define jiffies nsecs_to_jiffies(sched_clock())
#endif