mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacmn: Add conditional macro for arch_counter_get_cntvct()
Kernel 5.2 onwards calls __arch_counter_get_cntvct() instead of arch_counter_get_cntvct(). Add conditional preprocessor directive to use the appropriate function call for the correct kernel version. Change-Id: I86041fdfd36f0c4522397f632910cdaa26780035 CRs-Fixed: 2558917
This commit is contained in:
parent
1e9c5f488d
commit
76036f10e7
1 changed files with 6 additions and 1 deletions
|
|
@ -265,7 +265,12 @@ 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))
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0))
|
||||
static inline uint64_t __qdf_get_log_timestamp(void)
|
||||
{
|
||||
return __arch_counter_get_cntvct();
|
||||
}
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
|
||||
static inline uint64_t __qdf_get_log_timestamp(void)
|
||||
{
|
||||
return arch_counter_get_cntvct();
|
||||
|
|
|
|||
Loading…
Reference in a new issue