DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern usched_bsd4.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Sep 2005 11:03:32 -0700 (PDT)

dillon      2005/09/27 11:03:32 PDT

DragonFly src repository

  Modified files:
    sys/kern             usched_bsd4.c 
  Because recalculate is only called once or twice for long sleeps,
  not every second forever while the process is sleeping, we have
  to manually call it to resynchronize p_cpbase on wakeup or it
  will wrap if the process was sleeping long enough (e.g. ~10 min
  with the ACPI timer) and really mess up the nticks calculation.
  The bug could very rarely result in an integer divide by 0 crash.
  Reported-by: David Rhodus
  Revision  Changes    Path
  1.2       +11 -1     src/sys/kern/usched_bsd4.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]