The following commit has been merged in the master branch:
commit b6a3d7c9da9a0bfcd3e24698e083919ef72de768
Author: Ben Kaduk <[email protected]>
Date:   Sat Mar 6 15:20:18 2010 -0500

    Use the correct API for msleep() in FBSD's afs_osi_TimedSleep()
    
    msleep() does not take a struct timespec*, it takes its timeout
    value as a multiple of the kernel's HZ parameter (tuneable at
    startup).  Since the afs_osi_TimedSleep interface is documented
    to take a timeout in milliseconds, we must correct for the (sometimes)
    different units (currently HZ defaults to 1000).  We prefer
    to multiply the timeout by HZ before dividing by 1000 so as to
    not lose precision; overflow is assumed to be unlikely.
    
    Change-Id: Ic101f3bf54213eebe249cb6c40a6d8cbd3d722f0
    Reviewed-on: http://gerrit.openafs.org/1539
    Reviewed-by: Derrick Brashear <[email protected]>
    Tested-by: Derrick Brashear <[email protected]>

 src/afs/FBSD/osi_sleep.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to