diff options
-rw-r--r-- | kernel/hrtimer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 70d4adc74639..f78777abe769 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -1254,14 +1254,13 @@ void hrtimer_run_queues(void) | |||
1254 | if (!base->first) | 1254 | if (!base->first) |
1255 | continue; | 1255 | continue; |
1256 | 1256 | ||
1257 | if (gettime) { | 1257 | if (base->get_softirq_time) |
1258 | base->softirq_time = base->get_softirq_time(); | ||
1259 | else if (gettime) { | ||
1258 | hrtimer_get_softirq_time(cpu_base); | 1260 | hrtimer_get_softirq_time(cpu_base); |
1259 | gettime = 0; | 1261 | gettime = 0; |
1260 | } | 1262 | } |
1261 | 1263 | ||
1262 | if (base->get_softirq_time) | ||
1263 | base->softirq_time = base->get_softirq_time(); | ||
1264 | |||
1265 | spin_lock(&cpu_base->lock); | 1264 | spin_lock(&cpu_base->lock); |
1266 | 1265 | ||
1267 | while ((node = base->first)) { | 1266 | while ((node = base->first)) { |