aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index ae1544f0a20d..d4dabfcc776c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -829,7 +829,7 @@ static void update_curr_load(struct rq *rq)
829 * Stagger updates to ls->delta_fair. Very frequent updates 829 * Stagger updates to ls->delta_fair. Very frequent updates
830 * can be expensive. 830 * can be expensive.
831 */ 831 */
832 if (ls->delta_stat >= sysctl_sched_stat_granularity) 832 if (ls->delta_stat)
833 __update_curr_load(rq, ls); 833 __update_curr_load(rq, ls);
834} 834}
835 835
@@ -1588,9 +1588,6 @@ static void __sched_fork(struct task_struct *p)
1588 p->se.exec_start = 0; 1588 p->se.exec_start = 0;
1589 p->se.sum_exec_runtime = 0; 1589 p->se.sum_exec_runtime = 0;
1590 p->se.prev_sum_exec_runtime = 0; 1590 p->se.prev_sum_exec_runtime = 0;
1591 p->se.delta_exec = 0;
1592 p->se.delta_fair_run = 0;
1593 p->se.delta_fair_sleep = 0;
1594 p->se.wait_runtime = 0; 1591 p->se.wait_runtime = 0;
1595 p->se.sleep_start_fair = 0; 1592 p->se.sleep_start_fair = 0;
1596 1593