Commit 174bd1994ec67a6e6191c4ed8e5dac17fa221b84

Authored by Stanislaw Gruszka
Committed by Thomas Gleixner
1 parent 2abfb9e1d4

hrtimer: Avoid double seqlock

hrtimer_get_softirq_time() has it's own xtime lock protection, so it's
safe to use plain __current_kernel_time() and avoid the double seqlock
loop.

Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
LKML-Reference: <20100525214912.GA1934@r2bh72.net.upc.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

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

... ... @@ -89,7 +89,7 @@
89 89  
90 90 do {
91 91 seq = read_seqbegin(&xtime_lock);
92   - xts = current_kernel_time();
  92 + xts = __current_kernel_time();
93 93 tom = wall_to_monotonic;
94 94 } while (read_seqretry(&xtime_lock, seq));
95 95