1 --- linux/arch/arm/mach-pxa/sharpsl_apm.c 2005-09-07 10:49:06.000000000 +0200
2 +++ /home/hrw//devel/diffs/sharpsl_apm.c 2005-09-07 10:46:57.000000000 +0200
3 @@ -1876,10 +1876,11 @@
7 - if (send_event(event)) {
8 - queue_event(event, NULL);
9 - if (standbys_pending <= 0)
10 + queue_event(event, NULL);
11 + if (standbys_pending <= 0) {
12 + if (send_event(event)) {
18 @@ -1907,13 +1908,12 @@
20 if (waiting_for_resume)
22 - if (send_event(event)) {
23 - queue_event(event, NULL);
24 - waiting_for_resume = 1;
25 - if (suspends_pending <= 0){
26 + queue_event(event, NULL);
27 + waiting_for_resume = 1;
28 + if (suspends_pending <= 0)
29 + if (send_event(event)) {
35 case APM_NORMAL_RESUME:
36 @@ -2225,26 +2225,32 @@
38 as->standbys_pending--;
40 - } else if (!send_event(APM_USER_STANDBY))
44 queue_event(APM_USER_STANDBY, as);
45 - if (standbys_pending <= 0)
48 + if (standbys_pending <= 0) {
49 + if (send_event(APM_USER_STANDBY)) {
57 if (as->suspends_read > 0) {
59 as->suspends_pending--;
61 - } else if (!send_event(APM_USER_SUSPEND))
65 queue_event(APM_USER_SUSPEND, as);
67 if (suspends_pending <= 0) {
69 - if (suspend() != APM_SUCCESS)
71 + if (send_event(APM_USER_SUSPEND)) {
72 + if (suspend() != APM_SUCCESS)
79 add_wait_queue(&apm_suspend_waitqueue, &wait);
80 @@ -2483,13 +2489,18 @@
82 if (as->standbys_pending > 0) {
83 standbys_pending -= as->standbys_pending;
84 - if (standbys_pending <= 0)
86 + if (standbys_pending <= 0) {
87 + if (send_event(APM_USER_STANDBY)) {
92 if (as->suspends_pending > 0) {
93 suspends_pending -= as->suspends_pending;
94 - if (suspends_pending <= 0){
96 + if (suspends_pending <= 0) {
97 + if (send_event(APM_USER_SUSPEND)) {