summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2012-08-15 18:11:34 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2012-08-15 18:11:34 +0200
commit755d6f51d10293a03d850db927052df35f42e23c (patch)
tree727022a33a4af5720c858028683262b64a0c5731 /recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch
parent600fc07667fa1f8df560fd7f7de563b31600f145 (diff)
L4T R15, oe-core Image V2.0Beta1
Diffstat (limited to 'recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch')
-rw-r--r--recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch b/recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch
new file mode 100644
index 0000000..f0ca23b
--- /dev/null
+++ b/recipes-lxde/lxdm/lxdm/fix_event_check_bug_caused_cpu_100.patch
@@ -0,0 +1,25 @@
+From d4e41ecb36a1ea29482b75674d804bb0f05540b2 Mon Sep 17 00:00:00 2001
+From: dgod <dgod.osa@gmail.com>
+Date: Sun, 25 Dec 2011 15:23:19 +0800
+Subject: [PATCH] fix event check bug caused cpu 100%
+
+---
+ src/lxcom.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/lxcom.c b/src/lxcom.c
+index 02763eb..18ee12e 100644
+--- a/src/lxcom.c
++++ b/src/lxcom.c
+@@ -89,7 +89,7 @@ static gboolean lxcom_prepare (GSource *source,gint *timeout)
+
+ static gboolean lxcom_check(GSource *source)
+ {
+- return TRUE;
++ return (((LXComSource*)source)->poll.revents&G_IO_IN)?TRUE:FALSE;
+ }
+
+ static gboolean lxcom_dispatch (GSource *source,GSourceFunc callback,gpointer user_data)
+--
+1.7.4.1
+