View | Details | Raw Unified | Return to bug 45001 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +7 lines)
Line  Link Here
0
-- linux-4.4/kernel/sched/loadavg.c.orig       2016-01-21 09:11:15.357421120 +0100
0
++ linux-4.4/kernel/sched/loadavg.c    2016-01-22 02:25:52.968218198 +0100
Lines 99-108 long calc_load_fold_active(struct rq *th Link Here
99
static unsigned long
99
static unsigned long
100
calc_load(unsigned long load, unsigned long exp, unsigned long active)
100
calc_load(unsigned long load, unsigned long exp, unsigned long active)
101
{
101
{
102
       load *= exp;
102
       long unsigned newload;
103
       load += active * (FIXED_1 - exp);
103
104
       load += 1UL << (FSHIFT - 1);
104
       newload = load * exp + active * (FIXED_1 - exp);
105
       return load >> FSHIFT;
105
       if (active >= load)
106
               newload += FIXED_1-1;
107
       return newload / FIXED_1;
106
}
108
}
107
#ifdef CONFIG_NO_HZ_COMMON
109
#ifdef CONFIG_NO_HZ_COMMON

Return to bug 45001