diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-16 08:31:55 +0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-16 08:31:55 +0700 |
commit | 9b6c4ea95ff87464e012f70b119601de9e94deac (patch) | |
tree | 5dc1d4c9ea990bdf01a9f3c42965f9bc5bf0d47d /kernel | |
parent | 93a11c8f5cc642571071a1609a83998db1373077 (diff) | |
parent | 7a06c41cbec33c6dbe7eec575c61986122617408 (diff) | |
download | lwn-9b6c4ea95ff87464e012f70b119601de9e94deac.tar.gz lwn-9b6c4ea95ff87464e012f70b119601de9e94deac.zip |
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fixes from Ingo Molnar:
"Two fixes from lockdep coverage of seqlocks, which fix deadlocks on
lockdep-enabled ARM systems"
* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched_clock: Disable seqlock lockdep usage in sched_clock()
seqlock: Use raw_ prefix instead of _no_lockdep
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/time/sched_clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index 68b799375981..0abb36464281 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c @@ -74,7 +74,7 @@ unsigned long long notrace sched_clock(void) return cd.epoch_ns; do { - seq = read_seqcount_begin(&cd.seq); + seq = raw_read_seqcount_begin(&cd.seq); epoch_cyc = cd.epoch_cyc; epoch_ns = cd.epoch_ns; } while (read_seqcount_retry(&cd.seq, seq)); @@ -99,10 +99,10 @@ static void notrace update_sched_clock(void) cd.mult, cd.shift); raw_local_irq_save(flags); - write_seqcount_begin(&cd.seq); + raw_write_seqcount_begin(&cd.seq); cd.epoch_ns = ns; cd.epoch_cyc = cyc; - write_seqcount_end(&cd.seq); + raw_write_seqcount_end(&cd.seq); raw_local_irq_restore(flags); } |