kern/117420: round off in sched_balance_pair()

KOIE Hidetaka hide at koie.org
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 23 10:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     KOIE Hidetaka
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD sakura.suri.co.jp 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Oct 16 21:43:56 JST 2007     koie at sakura.suri.co.jp:/usr/obj/usr/src/sys/SAKURA  i386
>Description:
In sched_ule.c:sched_balance_pair(),
the following code fragment
  move = diff / 2;
  if (diff & 0x1)
          move++;
is rounding off and equal to
  move = (diff + 1) / 2;

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list