diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2020-10-21 12:07:49 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-10-26 11:04:14 +0100 |
commit | 1a2b85f1e2a93a3f84243e654d225e4088735336 (patch) | |
tree | c2d9e3d2e2cc4886ba50db2f38dd3b27cd173c6e /kernel/time/jiffies.c | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-1a2b85f1e2a93a3f84243e654d225e4088735336.tar.gz linux-1a2b85f1e2a93a3f84243e654d225e4088735336.tar.bz2 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/jiffies.c')
-rw-r--r-- | kernel/time/jiffies.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c index eddcf4970444..a5cffe2a1770 100644 --- a/kernel/time/jiffies.c +++ b/kernel/time/jiffies.c @@ -59,7 +59,8 @@ static struct clocksource clocksource_jiffies = { }; __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(jiffies_lock); -__cacheline_aligned_in_smp seqcount_t jiffies_seq; +__cacheline_aligned_in_smp seqcount_raw_spinlock_t jiffies_seq = + SEQCNT_RAW_SPINLOCK_ZERO(jiffies_seq, &jiffies_lock); #if (BITS_PER_LONG < 64) u64 get_jiffies_64(void) |