diff options
| author | Srinivas Girigowda <sgirigow@qca.qualcomm.com> | 2014-04-03 16:30:25 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-04-08 09:32:42 -0700 |
| commit | 0803ec8e27b02e7b18083dfdc6372a246785b797 (patch) | |
| tree | 63325f00770000cebf4de3406a6d79c5fb270173 /CORE/VOSS/src | |
| parent | 7f1ae36bb1fe84cdba723669c85ea8eae2e74f95 (diff) | |
qcacld: vos_atomic_set 64-Bit Clean.
vos_atomic_set_U32 is used to set the U32 variable atomically,
but for 64-bit we need a different API which can support for
both 32/64 bit.
Change-Id: I7e15070c63471759f0a6e767633f447b2a0a1d7d
CRs-Fixed: 643325
Diffstat (limited to 'CORE/VOSS/src')
| -rw-r--r-- | CORE/VOSS/src/vos_types.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CORE/VOSS/src/vos_types.c b/CORE/VOSS/src/vos_types.c index 1dddbf09f1e7..b7182162ba11 100644 --- a/CORE/VOSS/src/vos_types.c +++ b/CORE/VOSS/src/vos_types.c @@ -56,21 +56,21 @@ /*---------------------------------------------------------------------------- - \brief vos_atomic_set_U32() - set a U32 variable atomically + \brief vos_atomic_set - set a variable atomically - \param pTarget - pointer to the v_U32_t to set. + \param pTarget - pointer to the uintptr_t to set. - \param value - the value to set in the v_U32_t variable. + \param value - the value to set in the uintptr_t variable. - \return This function returns the value previously in the v_U32_t before + \return This function returns the value previously in the uintptr_t before the new value is set. \sa vos_atomic_increment_U32(), vos_atomic_decrement_U32() --------------------------------------------------------------------------*/ -v_U32_t vos_atomic_set_U32( v_U32_t *pTarget, v_U32_t value ) +uintptr_t vos_atomic_set( uintptr_t *pTarget, uintptr_t value ) { - v_U32_t oldval; + uintptr_t oldval; unsigned long flags; if (pTarget == NULL) |
