summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 6f47fa3dbf41..bdf8b6fe5f27 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1611,14 +1611,8 @@ static void update_cpu_busy_time(struct task_struct *p, struct rq *rq,
/* The IRQ busy time spanned multiple windows. Process the
* busy time preceding the current window start first. */
delta = window_start - mark_start;
- if (delta > window_size) {
+ if (delta > window_size)
delta = window_size;
- /* If there's 1 or more full windows of IRQ busy time
- * then the entire prev_runnable_sum will be a window
- * of IRQ time - there should be no contribution from
- * anything else. */
- rq->prev_runnable_sum = 0;
- }
delta = scale_exec_time(delta, rq);
rq->prev_runnable_sum += delta;