Merge commit 'v2.6.30-rc6' into perfcounters/core
[linux-2.6.git] / kernel / sched.c
index a728976..419a39d 100644 (file)
@@ -4769,7 +4769,7 @@ void account_process_tick(struct task_struct *p, int user_tick)
 
        if (user_tick)
                account_user_time(p, one_jiffy, one_jiffy_scaled);
-       else if (p != rq->idle)
+       else if ((p != rq->idle) || (irq_count() != HARDIRQ_OFFSET))
                account_system_time(p, HARDIRQ_OFFSET, one_jiffy,
                                    one_jiffy_scaled);
        else