diff options
| author | Yu Wang <yyuwang@codeaurora.org> | 2017-09-15 18:37:07 +0800 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-09-21 15:44:51 -0700 |
| commit | cffa647e72c5a6a2fcef0211bfc720b8a133cc75 (patch) | |
| tree | fdc608e278a4affeaf62daf5afc77d057c36e738 | |
| parent | 7ee796e62ed26ec71011972037a0f71b7a06b5d2 (diff) | |
qcacld-3.0: use qdf_do_div to do 64 bit division
Use qdf_do_div() for 64 bit division, because '/'
can't be used for 64 bit division on arm32 platform.
Change-Id: I047334565643e695ac343a5da06e030d8e37d7e4
CRs-Fixed: 2110736
| -rw-r--r-- | core/hdd/src/wlan_hdd_tsf.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_tsf.c b/core/hdd/src/wlan_hdd_tsf.c index 686c0ed2de5b..9e5b86374cf6 100644 --- a/core/hdd/src/wlan_hdd_tsf.c +++ b/core/hdd/src/wlan_hdd_tsf.c @@ -586,13 +586,15 @@ static inline int32_t hdd_get_targettime_from_hosttime( if (host_time < adapter->last_host_time) ret = hdd_uint64_minus(adapter->last_target_time, - (adapter->last_host_time - host_time) / - HOST_TO_TARGET_TIME_RATIO, + qdf_do_div(adapter->last_host_time - + host_time, + HOST_TO_TARGET_TIME_RATIO), target_time); else ret = hdd_uint64_plus(adapter->last_target_time, - (host_time - adapter->last_host_time) / - HOST_TO_TARGET_TIME_RATIO, + qdf_do_div(host_time - + adapter->last_host_time, + HOST_TO_TARGET_TIME_RATIO), target_time); if (in_cap_state) |
