mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacmn: Extend kernel version condition in i_qdf_time.h
For kernel v3.17 and above, timekeeping.h is included for some kernel APIs such as ktime_get() but for versions prior to 3.17, the above APIs are present in hrtimer.h. To accommodate the usage of these APIs for older kernel versions, include <linux/hrtimer.h> into this file for kernel versions lower than 3.17 Change-Id: I445a1673d9067a2dd47045d6c48d73aaa239790e CRs-Fixed: 2252563
This commit is contained in:
parent
54a68b5752
commit
e6168d475d
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@
|
|||
#include <linux/ktime.h>
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0))
|
||||
#include <linux/timekeeping.h>
|
||||
#else
|
||||
#include <linux/hrtimer.h>
|
||||
#endif
|
||||
#ifdef MSM_PLATFORM
|
||||
#include <asm/arch_timer.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue