NetBSD-Bugs archive

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

Re: kern/57718: mstohz rounds down, not up, which leads to surprising bugs when it rounds to zero



The following reply was made to PR kern/57718; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: matthew green <mrg%eterna23.net@localhost>
Cc: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost
Subject: Re: kern/57718: mstohz rounds down, not up, which leads to surprising bugs when it rounds to zero
Date: Thu, 23 Nov 2023 12:15:28 +0700

     Date:        Thu, 23 Nov 2023 07:43:34 +1100
     From:        matthew green <mrg%eterna23.net@localhost>
     Message-ID:  <21466.1700685814%splode.eterna23.net@localhost>
 
   | long ago (90s) we didn't fail with hz=1 even.  :-)  this was
   | useful for early bring up on sparc64.
 
 some of that renains.
 
   | i've got a couple of places where i convert mstohz() to have
   | a min(1, ..) but i never got around to looking closer.
 
 max() hopefully ... haven't spotted any using min() (fortunately!)
 
 kre
 


Home | Main Index | Thread Index | Old Index