From 5c4340b2abc43278d6cb8fcf5a1379f68ef0842a Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Fri, 10 May 2013 18:23:40 -0700 Subject: [PATCH] libc: remove obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HR Add CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE as supported by recent linux kernels. (cherry-pick of 60e5144ca312b210b54ac8e6966108da0c97ff80.) Bug: 8895727 Change-Id: If79a4d05d1301108f49a37588f9416c4be19277a --- libc/include/time.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libc/include/time.h b/libc/include/time.h index edcc5bdee..8995585a0 100644 --- a/libc/include/time.h +++ b/libc/include/time.h @@ -101,8 +101,9 @@ extern int clock_gettime(int, struct timespec *); #define CLOCK_MONOTONIC 1 #define CLOCK_PROCESS_CPUTIME_ID 2 #define CLOCK_THREAD_CPUTIME_ID 3 -#define CLOCK_REALTIME_HR 4 -#define CLOCK_MONOTONIC_HR 5 +#define CLOCK_MONOTONIC_RAW 4 +#define CLOCK_REALTIME_COARSE 5 +#define CLOCK_MONOTONIC_COARSE 6 #define CLOCK_BOOTTIME 7 #define CLOCK_REALTIME_ALARM 8 #define CLOCK_BOOTTIME_ALARM 9