]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: use spin counts for osi base locks
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 5 Jul 2012 20:52:51 +0000 (16:52 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 6 Jul 2012 04:49:40 +0000 (21:49 -0700)
commitd5f067aa735968d4da6685f0883ca978d5e6795c
treecce516504f203d7bd3f4e5be2cec324bf3b7efe4
parentf4baf7cf99ef52f3ce9d6a7ee577cd9140a8bdc5
Windows: use spin counts for osi base locks

On multiprocessor systems, spin counts are faster than entering
a processor wait state when there is critical section contention.
Microsoft recommends a count of 4000.  This feature is only available
on XP and above which is fine since OpenAFS master and 1.7 no longer
support Windows 2000.

Change-Id: I1b40d00b2a91e60e1676a53e1c38eb5f9bfadc69
Reviewed-on: http://gerrit.openafs.org/7719
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/client_osi/osibasel.c