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: matthew green <mrg%eterna23.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
    netbsd-bugs%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 07:43:34 +1100

 > >Fix:
 > Yes, please!
 
 yes please :-)
 
 long ago (90s) we didn't fail with hz=1 even.  :-)  this was
 useful for early bring up on sparc64.
 
 i've got a couple of places where i convert mstohz() to have
 a min(1, ..) but i never got around to looking closer.
 
 
 .mrg.
 


Home | Main Index | Thread Index | Old Index