aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:03 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:03 -0400
commit8ebc91d93669af39dbed50914d7daf457eeb43be (patch)
treec7ab6dfce3ea737db57599c8e42a41ddac51464c /kernel/sched.c
parent2bd8e6d422a4f44c0994f909317eba80b0fe08a1 (diff)
sched: remove stat_gran
remove the stat_gran code - it was disabled by default and it causes unnecessary overhead. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Mike Galbraith <efault@gmx.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
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