summaryrefslogtreecommitdiff
path: root/arch/cris
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-25 19:43:27 +0200
committerThomas Gleixner <tglx@linutronix.de>2009-07-27 21:07:19 +0200
commit5a950072e4c1036abcdb35610d053e49bdde55c9 (patch)
tree9c544ddb02eba75ed97c4460219e43e70af37a2a /arch/cris
parent09e46c7a86b2e81f97bd93f588b62c2d36cff58e (diff)
downloadlwn-5a950072e4c1036abcdb35610d053e49bdde55c9.tar.gz
lwn-5a950072e4c1036abcdb35610d053e49bdde55c9.zip
xtime_lock: Convert to atomic_seqlock
Convert xtime_lock to atomic_seqlock and fix up all users. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/kernel/time.c b/arch/cris/kernel/time.c
index 074fe7dea96b..72408edec3be 100644
--- a/arch/cris/kernel/time.c
+++ b/arch/cris/kernel/time.c
@@ -87,7 +87,7 @@ int do_settimeofday(struct timespec *tv)
if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)
return -EINVAL;
- write_seqlock_irq(&xtime_lock);
+ write_atomic_seqlock_irq(&xtime_lock);
/*
* This is revolting. We need to set "xtime" correctly. However, the
* value in this location is the value at the most recent update of
@@ -103,7 +103,7 @@ int do_settimeofday(struct timespec *tv)
set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);
ntp_clear();
- write_sequnlock_irq(&xtime_lock);
+ write_atomic_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}