aboutsummaryrefslogtreecommitdiffstats
path: root/packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch')
-rw-r--r--packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch b/packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch
deleted file mode 100644
index 092b0dcf49..0000000000
--- a/packages/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/fix_tosa_apm.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-
-#
-# Patch managed by http://www.holgerschurig.de/patcher.html
-#
-
---- linux/arch/arm/mach-pxa/sharpsl_apm.c~fix_tosa_apm.patch
-+++ linux/arch/arm/mach-pxa/sharpsl_apm.c
-@@ -254,6 +254,8 @@
- int magic;
- struct apm_user * next;
- int suser: 1;
-+ int reader: 1;
-+ int writer: 1;
- int suspend_wait: 1;
- int suspend_result;
- int suspends_pending;
-@@ -1596,12 +1598,12 @@
- {
- struct apm_user * as;
-
-- DPRINTK("event=%d\n",event);
-+ DPRINTK("event=%d, sender=%p\n",event,sender);
-
- if (user_list == NULL)
- return;
- for (as = user_list; as != NULL; as = as->next) {
-- if (as == sender)
-+ if ((as == sender) || (!as->reader))
- continue;
- as->event_head = (as->event_head + 1) % APM_MAX_EVENTS;
- if (as->event_head == as->event_tail) {
-@@ -1611,8 +1613,8 @@
- as->event_tail = (as->event_tail + 1) % APM_MAX_EVENTS;
- }
- as->events[as->event_head] = event;
-- if (!as->suser)
-- continue;
-+ if ((!as->suser) || (!as->writer))
-+ continue;
- switch (event) {
- case APM_SYS_SUSPEND:
- case APM_USER_SUSPEND:
-@@ -1630,9 +1632,8 @@
- #ifdef SHARPSL_NEW_IDLE
- current->nice = save_nice;
- current->counter = save_counter;
--#else
-- wake_up_interruptible(&apm_waitqueue);
- #endif
-+ wake_up_interruptible(&apm_waitqueue);
- }
-
- static unsigned long get_cmos_time(void)
-@@ -2532,6 +2533,8 @@
- * privileged operation -- cevans
- */
- as->suser = capable(CAP_SYS_ADMIN);
-+ as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE;
-+ as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ;
- as->next = user_list;
- user_list = as;
- filp->private_data = as;
-@@ -3000,6 +3003,9 @@
- #endif
- #endif
-
-+ suspends_pending = 0;
-+ standbys_pending = 0;
-+
- apm_proc = create_proc_info_entry("apm", 0, NULL, apm_get_info);
- if (apm_proc)
- SET_MODULE_OWNER(apm_proc);