kern/117420: round off in sched_balance_pair()

KOIE Hidetaka hide at
Tue Oct 23 03:50:02 PDT 2007

>Number:         117420
>Category:       kern
>Synopsis:       round off in sched_balance_pair()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 10:50:01 UTC 2007
>Originator:     KOIE Hidetaka
>Release:        8.0-CURRENT
FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Oct 16 21:43:56 JST 2007     koie at  i386
In sched_ule.c:sched_balance_pair(),
the following code fragment
  move = diff / 2;
  if (diff & 0x1)
is rounding off and equal to
  move = (diff + 1) / 2;




More information about the freebsd-bugs mailing list