Change the event time to CLOCKID
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 24 Nov 2014 15:45:13 +0000 (00:45 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 24 Nov 2014 15:45:13 +0000 (00:45 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: Id0b868e875c555c4a11734c399a2c0cb60a6917c

data/x11.mobile.480x800.conf.ini
src/event.c

index f6e2b30..01d548d 100644 (file)
@@ -36,8 +36,8 @@ premultiplied=0
 #emergency_disk=source=tmpfs;type=tmpfs;option=size=6M
 #services=[dynamicbox],[shortcut],[notification],[utility],[badge],[file]
 auto_align=false
-use_event_time=false
-use_gettimeofday=true
+use_event_time=true
+use_gettimeofday=false
 slave_event_boost_on=-10
 slave_event_boost_off=0
 event_filter=0.5
index 21a970f..a2c8839 100644 (file)
@@ -754,6 +754,7 @@ static Eina_Bool event_read_cb(void *data, Ecore_Fd_Handler *handler)
 static int event_control_init(void)
 {
     int status;
+    unsigned int clockId = CLOCK_MONOTONIC;
 
     DbgPrint("Initializing event controller\n");
     if (s_info.handle != -1) {
@@ -774,6 +775,10 @@ static int event_control_init(void)
        ErrPrint("Error: %s\n", strerror(errno));
     }
 
+    if (ioctl(s_info.handle, EVIOCSCLOCKID, &clockId) < 0) {
+       ErrPrint("Error: %s\n", strerror(errno));
+    }
+
     status = pipe2(s_info.evt_pipe, O_CLOEXEC);
     if (status < 0) {
        ErrPrint("Unable to prepare evt pipe: %s\n", strerror(errno));