summaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping.h
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2020-10-21 21:07:49 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-10-26 11:04:14 +0100
commit1a2b85f1e2a93a3f84243e654d225e4088735336 (patch)
treec2d9e3d2e2cc4886ba50db2f38dd3b27cd173c6e /kernel/time/timekeeping.h
parentLinux 5.10-rc1 (diff)
downloadlinux-1a2b85f1e2a93a3f84243e654d225e4088735336.tar.xz
linux-1a2b85f1e2a93a3f84243e654d225e4088735336.zip
timekeeping: Convert jiffies_seq to seqcount_raw_spinlock_t
Use the new api and associate the seqcounter to the jiffies_lock enabling lockdep support - although for this particular case the write-side locking and non-preemptibility are quite obvious. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201021190749.19363-1-dave@stgolabs.net
Diffstat (limited to 'kernel/time/timekeeping.h')
-rw-r--r--kernel/time/timekeeping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.h b/kernel/time/timekeeping.h
index 099737f6f10c..6c2cbd9ef999 100644
--- a/kernel/time/timekeeping.h
+++ b/kernel/time/timekeeping.h
@@ -26,7 +26,7 @@ extern void do_timer(unsigned long ticks);
extern void update_wall_time(void);
extern raw_spinlock_t jiffies_lock;
-extern seqcount_t jiffies_seq;
+extern seqcount_raw_spinlock_t jiffies_seq;
#define CS_NAME_LEN 32