]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/time/tick-sched.c
nohz: no softirq pending warnings for offline cpus
[net-next-2.6.git] / kernel / time / tick-sched.c
index 342fc9ccab46d5132aae1c58b1fbce0d02a2feaf..dc17ffcf1919007efecb6bbdfb6dfb2a1de0a392 100644 (file)
@@ -247,7 +247,7 @@ void tick_nohz_stop_sched_tick(int inidle)
        if (need_resched())
                goto end;
 
-       if (unlikely(local_softirq_pending())) {
+       if (unlikely(local_softirq_pending() && cpu_online(cpu))) {
                static int ratelimit;
 
                if (ratelimit < 10) {