diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-08-25 11:48:12 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-25 10:05:09 -0700 |
commit | 0dd565069b21ae20f4916cf305b64268bb3f9d3f (patch) | |
tree | 1d715cabc712363936a110a7a3c4b7db0103e16b /drivers/staging/rtl8192e/rtl_core.h | |
parent | ac513a88a072b23452ca96a86f18ba8b9c0d85cd (diff) | |
download | op-kernel-dev-0dd565069b21ae20f4916cf305b64268bb3f9d3f.zip op-kernel-dev-0dd565069b21ae20f4916cf305b64268bb3f9d3f.tar.gz |
staging: rtl8192e: Modify time handling
In several places, the driver keeps times (in jiffies) in two 32-bit
quantities. In the rtl8192_hw_to_sleep(), there is an error in the
calculation of the difference between two 64-bit quantities. Rather
than fix that error, I have converted to a single 64-bit number. That
makes the code be much cleaner and clearer.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl_core.h')
-rw-r--r-- | drivers/staging/rtl8192e/rtl_core.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl_core.h index 22b0a43..4f94d0a 100644 --- a/drivers/staging/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl_core.h @@ -642,8 +642,7 @@ struct r8192_priv { int rxringcount; u16 rxbuffersize; - u32 LastRxDescTSFHigh; - u32 LastRxDescTSFLow; + u64 LastRxDescTSF; u16 EarlyRxThreshold; u32 ReceiveConfig; |