diff options
author | kejun.zhou <kejun.zhou@linaro.org> | 2012-05-31 14:48:17 +0800 |
---|---|---|
committer | hongbo.zhang <hongbo.zhang@linaro.com> | 2012-11-28 17:10:25 +0800 |
commit | 4a252ac2ad79531d4fd76f318a2a92029a0180b7 (patch) | |
tree | 31a20a56f9fd867eb9261797fa1c8c42417db306 | |
parent | efbb97a1026116564411c39e8f4556f513906e1b (diff) |
Change some head files in cpuidle_kill.c for pm-qa in Android system.
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
-rw-r--r-- | cpuidle/cpuidle_killer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpuidle/cpuidle_killer.c b/cpuidle/cpuidle_killer.c index 67a675e..5e7320f 100644 --- a/cpuidle/cpuidle_killer.c +++ b/cpuidle/cpuidle_killer.c @@ -2,7 +2,19 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#ifndef ANDROID #include <sys/timex.h> +#else +/* +* As of 4.0.4, Bionic doesn't provide the timex/adjtimex interface However, the kernel does. +*/ +#include <linux/timex.h> /* for struct timex */ +#include <asm/unistd.h> /* for __NR_adjtimex */ +static int adjtimex(struct timex *buf) +{ + return syscall(__NR_adjtimex, buf); +} +#endif #include <sys/types.h> #include <sys/wait.h> #include <sys/param.h> |