Skip to content

Commit

Permalink
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…linux/kernel/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
  • Loading branch information
Linus Torvalds committed Jul 24, 2008
2 parents 6209ed9 + 58838cf commit 8ffa5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/Kconfig.hz
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ config HZ
default 1000 if HZ_1000

config SCHED_HRTICK
def_bool HIGH_RES_TIMERS
def_bool HIGH_RES_TIMERS && USE_GENERIC_SMP_HELPERS
2 changes: 1 addition & 1 deletion kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static int do_balance_runtime(struct rt_rq *rt_rq)

diff = iter->rt_runtime - iter->rt_time;
if (diff > 0) {
do_div(diff, weight);
diff = div_u64((u64)diff, weight);
if (rt_rq->rt_runtime + diff > rt_period)
diff = rt_period - rt_rq->rt_runtime;
iter->rt_runtime -= diff;
Expand Down

0 comments on commit 8ffa5b6

Please sign in to comment.