mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn:: Change QTIMER API as per 4.4 kernel
Use arch_counter_get_cntvct API for QTIMER API on Kernel 4.4. CRs-Fixed: 999964 Change-Id: Ia28c6759cfecfdcc7bd938089b3198eac7dcd961
This commit is contained in:
parent
b3a3073ae7
commit
732caef504
1 changed files with 7 additions and 0 deletions
|
|
@ -204,10 +204,17 @@ static inline uint64_t __qdf_get_monotonic_boottime(void)
|
|||
*
|
||||
* Return: QTIMER(19.2 MHz) clock ticks
|
||||
*/
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
|
||||
static inline uint64_t __qdf_get_log_timestamp(void)
|
||||
{
|
||||
return arch_counter_get_cntvct();
|
||||
}
|
||||
#else
|
||||
static inline uint64_t __qdf_get_log_timestamp(void)
|
||||
{
|
||||
return arch_counter_get_cntpct();
|
||||
}
|
||||
#endif /* LINUX_VERSION_CODE */
|
||||
#else
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue