summaryrefslogtreecommitdiffstats
path: root/crypto/crypto_wq.c
diff options
context:
space:
mode:
authorBenoit Papillault <benoit.papillault@free.fr>2010-04-16 00:07:26 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:46:54 -0400
commit1c0fc65e6de4e941ff483df445e721d6edb1f84b (patch)
tree817e2d467d656b845b649f5ec883fbf100bc4b1e /crypto/crypto_wq.c
parent733f0ea4498a24db5b8ac048ef99983600f1eff9 (diff)
downloadtalos-op-linux-1c0fc65e6de4e941ff483df445e721d6edb1f84b.tar.gz
talos-op-linux-1c0fc65e6de4e941ff483df445e721d6edb1f84b.zip
ath5k/ath9k: Fix 64 bits TSF reads
According to tests, both TSF lower and upper registers kept counting, so the higher part could have been updated after the lower part has been read, as shown in the following log where the upper part is read first and the lower part next. tsf = {00000003-fffffffd} tsf = {00000003-00000001} tsf = {00000004-0000000b} This patch corrects this by checking that the upper part has not been changed while the lower part was read. It has been tested in an IBSS network where artifical IBSS merges have been done in order to trigger hundreds of rollover for the TSF lower part. It follows the logic mentionned by Derek, with only 2 register reads needed at each additional steps instead of 3 (the minimum number of register reads is still 3). Signed-off-by: Benoit Papillault <benoit.papillault@free.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'crypto/crypto_wq.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud