Commit 8ffa5b65968262ba6bb046329972791c0d960745
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: sched: clean up compiler warning sched: fix hrtick & generic-ipi dependency
Showing 2 changed files Side-by-side Diff
kernel/Kconfig.hz
kernel/sched_rt.c
... | ... | @@ -253,7 +253,7 @@ |
253 | 253 | |
254 | 254 | diff = iter->rt_runtime - iter->rt_time; |
255 | 255 | if (diff > 0) { |
256 | - do_div(diff, weight); | |
256 | + diff = div_u64((u64)diff, weight); | |
257 | 257 | if (rt_rq->rt_runtime + diff > rt_period) |
258 | 258 | diff = rt_period - rt_rq->rt_runtime; |
259 | 259 | iter->rt_runtime -= diff; |