diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 49cbf7cffebd1e75c8142b180c472f7f1f0a786c..f181ff4dd32ec18221955508d515c3b8da81c6a6 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -606,6 +606,9 @@ static inline void run_hrtimer_queue(struct hrtimer_base *base) { struct rb_node *node; + if (!base->first) + return; + if (base->get_softirq_time) base->softirq_time = base->get_softirq_time();