Skip to content

Commit

Permalink
hrtimer: Avoid double seqlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislaw Gruszka authored and Thomas Gleixner committed May 26, 2010
1 parent 2abfb9e commit 174bd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void hrtimer_get_softirq_time(struct hrtimer_cpu_base *base)

do {
seq = read_seqbegin(&xtime_lock);
xts = current_kernel_time();
xts = __current_kernel_time();
tom = wall_to_monotonic;
} while (read_seqretry(&xtime_lock, seq));

Expand Down

0 comments on commit 174bd19

Please sign in to comment.