qcacmn: make qdf_time_t synonymous with system ticks

Currently the use of qdf_time_t vs unsigned long is arbitrary.

Change-Id: I658b1e9169e50389f9054b9fe1d229e51e578461
CRs-Fixed: 1017055
This commit is contained in:
Houston Hoffman
2016-04-29 16:09:04 -07:00
committed by Gerrit - the friendly Code Review server
parent a757eda356
commit 2bfb82fd6f
3 changed files with 7 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ struct HIF_CE_state {
bool fake_sleep;
qdf_timer_t sleep_timer;
bool sleep_timer_init;
unsigned long sleep_ticks;
qdf_time_t sleep_ticks;
/* Per-pipe state. */
struct HIF_CE_pipe_info pipe_info[CE_COUNT_MAX];

View File

@@ -43,7 +43,7 @@ typedef __qdf_time_t qdf_time_t;
*
* Return: ticks
*/
static inline unsigned long qdf_system_ticks(void)
static inline qdf_time_t qdf_system_ticks(void)
{
return __qdf_system_ticks();
}
@@ -65,7 +65,7 @@ static inline uint32_t qdf_system_ticks_to_msecs(unsigned long clock_ticks)
*
* Return: unsigned long number of ticks
*/
static inline unsigned long qdf_system_msecs_to_ticks(uint32_t msecs)
static inline qdf_time_t qdf_system_msecs_to_ticks(uint32_t msecs)
{
return __qdf_system_msecs_to_ticks(msecs);
}
@@ -74,9 +74,9 @@ static inline unsigned long qdf_system_msecs_to_ticks(uint32_t msecs)
* qdf_get_system_uptime - Return a monotonically increasing time
* This increments once per HZ ticks
*
* Return: unsigned long system up time
* Return: qdf_time_t system up time in ticks
*/
static inline unsigned long qdf_get_system_uptime(void)
static inline qdf_time_t qdf_get_system_uptime(void)
{
return __qdf_get_system_uptime();
}
@@ -84,7 +84,7 @@ static inline unsigned long qdf_get_system_uptime(void)
/**
* qdf_get_system_timestamp - Return current timestamp
*
* Return: unsigned long
* Return: unsigned long timestamp in ms.
*/
static inline unsigned long qdf_get_system_timestamp(void)
{

View File

@@ -84,7 +84,7 @@ static inline __qdf_time_t __qdf_get_system_uptime(void)
return jiffies;
}
static inline __qdf_time_t __qdf_get_system_timestamp(void)
static inline unsigned long __qdf_get_system_timestamp(void)
{
return (jiffies / HZ) * 1000 + (jiffies % HZ) * (1000 / HZ);
}