]> err.no Git - linux-2.6/blobdiff - kernel/hrtimer.c
e1000: Made an adapter struct variable into a local (txb2b)
[linux-2.6] / kernel / hrtimer.c
index 49cbf7cffebd1e75c8142b180c472f7f1f0a786c..d2a7296c8251979b67be6a98640025c0181462c5 100644 (file)
@@ -501,6 +501,7 @@ int hrtimer_cancel(struct hrtimer *timer)
 
                if (ret >= 0)
                        return ret;
+               cpu_relax();
        }
 }
 
@@ -606,6 +607,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();