]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: correct math in elapsed_jiffies
authorEric Sandeen <sandeen@redhat.com>
Thu, 24 Jan 2008 20:47:39 +0000 (15:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:47 +0000 (19:26 -0800)
commitb737a12a622963f0af89e9fbaad5deb8e3faba51
tree57ea08c17f64dcb8c42b9a94793313e412d3a023
parent80f0d949de377cc0c419fd1df599b1755a482c43
iwlwifi: correct math in elapsed_jiffies

w/o the first change: if end == start you get MAX_JIFFY_OFFSET which
isn't what you want...

For the latter I think to be technically correct you need the +1 to
account for the jiffy between MAX_JIFFY_OFFSET and 0

(hmm w/ the 2nd change the first isn't strictly needed... ah well)

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/iwlwifi/iwl-helpers.h