aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hrtimer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 70d4adc7463..f78777abe76 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -1254,14 +1254,13 @@ void hrtimer_run_queues(void)
if (!base->first)
continue;
- if (gettime) {
+ if (base->get_softirq_time)
+ base->softirq_time = base->get_softirq_time();
+ else if (gettime) {
hrtimer_get_softirq_time(cpu_base);
gettime = 0;
}
- if (base->get_softirq_time)
- base->softirq_time = base->get_softirq_time();
-
spin_lock(&cpu_base->lock);
while ((node = base->first)) {