Commit 9141d30a480850d989fc245909b98670a7b66ec1

Authored by Paul Mundt
1 parent 1a013e2ffc

sh64: fixups for xtime_lock seqlock conversion.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

arch/sh/kernel/time_64.c
... ... @@ -240,7 +240,7 @@
240 240 * the irq version of write_lock because as just said we have irq
241 241 * locally disabled. -arca
242 242 */
243   - write_lock(&xtime_lock);
  243 + write_seqlock(&xtime_lock);
244 244 asm ("getcon cr62, %0" : "=r" (current_ctc));
245 245 ctc_last_interrupt = (unsigned long) current_ctc;
246 246  
... ... @@ -266,7 +266,7 @@
266 266 /* do it again in 60 s */
267 267 last_rtc_update = xtime.tv_sec - 600;
268 268 }
269   - write_unlock(&xtime_lock);
  269 + write_sequnlock(&xtime_lock);
270 270  
271 271 #ifndef CONFIG_SMP
272 272 update_process_times(user_mode(get_irq_regs()));