summaryrefslogtreecommitdiff
path: root/packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch')
-rw-r--r--packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch b/packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch
index 900124e7d4..1446bc2eb7 100644
--- a/packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch
+++ b/packages/linux/opensimpad-2.4.27-vrs1-pxa1-jpm1/simpad-apm.patch
@@ -450,7 +450,7 @@
static struct file_operations apm_bios_fops = {
owner: THIS_MODULE,
read: do_read,
-@@ -454,6 +483,48 @@
+@@ -454,6 +483,50 @@
#define APM_INIT_ERROR_RETURN return -1
@@ -483,8 +483,10 @@
+ as->writer = 1;
+ as->reader = 0;
+
-+ while (!signal_pending (current)) {
++ for (;;) {
+ interruptible_sleep_on(&apm_suspend_waitqueue);
++ if (signal_pending (current))
++ break;
+
+ pm_suggest_suspend();
+