Commit aad1830e6b978f5d90e5d81d071e1752f526f732
Exists in
master
and in
7 other branches
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/tip/linux-2.6-tip * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, tsc: Fix a preemption leak in restore_sched_clock_state() sched: Move sched_avg_update() to update_cpu_load()
Showing 2 changed files Side-by-side Diff
kernel/sched.c
... | ... | @@ -1294,6 +1294,10 @@ |
1294 | 1294 | static void sched_rt_avg_update(struct rq *rq, u64 rt_delta) |
1295 | 1295 | { |
1296 | 1296 | } |
1297 | + | |
1298 | +static void sched_avg_update(struct rq *rq) | |
1299 | +{ | |
1300 | +} | |
1297 | 1301 | #endif /* CONFIG_SMP */ |
1298 | 1302 | |
1299 | 1303 | #if BITS_PER_LONG == 32 |
... | ... | @@ -3182,6 +3186,8 @@ |
3182 | 3186 | |
3183 | 3187 | this_rq->cpu_load[i] = (old_load * (scale - 1) + new_load) >> i; |
3184 | 3188 | } |
3189 | + | |
3190 | + sched_avg_update(this_rq); | |
3185 | 3191 | } |
3186 | 3192 | |
3187 | 3193 | static void update_cpu_load_active(struct rq *this_rq) |
kernel/sched_fair.c