From: Nigel Cunningham <ncunningham@clear.net.nz>
To: trelane@digitasaru.net
Cc: Luke-Jr <luke7jr@yahoo.com>,
swsusp-devel <swsusp-devel@lists.sourceforge.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [Swsusp-devel] Software Suspend 2.0
Date: Sat, 31 Jan 2004 21:32:05 +1300 [thread overview]
Message-ID: <1075537924.17730.88.camel@laptop-linux> (raw)
In-Reply-To: <20040131073848.GE7245@digitasaru.net>
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
Okay. Attached is a patch that will let you use Software Suspend 2.0
with linux-2.6.2-rc3.
How to apply:
Get the latest 2.6.1 patch (revision 7) and latest core patch (2.0) from
http://swsusp.sf.net.
Apply the 2.6.1 patch to your rc3 kernel. You'll get some rejects; don't
worry about them. Apply the attached patch. It fixes up the rejects. Now
apply the core patch. Then configure and compile as per normal.
Regards,
Nigel
--
Nigel Cunningham
495 St Georges Road South, Hastings 4201, New Zealand
Evolution (n): A hypothetical process whereby infinitely improbable events occur
with alarming frequency, order arises from chaos, and no one is given credit.
[-- Attachment #2: 2.6.2-rc3-rejects-patch --]
[-- Type: text/x-patch, Size: 5176 bytes --]
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/drivers/media/video/msp3400.c software-suspend-linux-2.6.2-rc3/drivers/media/video/msp3400.c
--- software-suspend-linux-2.6.2-rc3-261patch7/drivers/media/video/msp3400.c 2004-01-31 21:27:04.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/drivers/media/video/msp3400.c 2004-01-31 21:22:50.000000000 +1300
@@ -808,7 +808,9 @@
/* some time for the tuner to sync */
set_current_state(TASK_INTERRUPTIBLE);
+ SWSUSP_ACTIVITY_PAUSING;
schedule_timeout(HZ/5);
+ SWSUSP_ACTIVITY_RESTARTING(PF_SYNCTHREAD);
if (signal_pending(current))
goto done;
@@ -843,7 +845,9 @@
msp3400c_setcarrier(client, cd[this].cdo,cd[this].cdo);
set_current_state(TASK_INTERRUPTIBLE);
+ SWSUSP_ACTIVITY_PAUSING;
schedule_timeout(HZ/10);
+ SWSUSP_ACTIVITY_RESTARTING(PF_SYNCTHREAD);
if (signal_pending(current))
goto done;
if (msp->restart)
@@ -879,7 +883,9 @@
for (this = 0; this < count; this++) {
msp3400c_setcarrier(client, cd[this].cdo,cd[this].cdo);
+ SWSUSP_ACTIVITY_PAUSING;
set_current_state(TASK_INTERRUPTIBLE);
+ SWSUSP_ACTIVITY_RESTARTING(PF_SYNCTHREAD);
schedule_timeout(HZ/10);
if (signal_pending(current))
goto done;
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/fs/jffs/intrep.c software-suspend-linux-2.6.2-rc3/fs/jffs/intrep.c
--- software-suspend-linux-2.6.2-rc3-261patch7/fs/jffs/intrep.c 2004-01-31 21:27:05.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/fs/jffs/intrep.c 2004-01-31 21:22:51.000000000 +1300
@@ -3346,6 +3346,9 @@
DECLARE_SWSUSP_LOCAL_VAR;
daemonize("jffs_gcd");
+ current->flags |= PF_SYNCTHREAD;
+
+ SWSUSP_THREAD_FLAGS_RESET;
c->gc_task = current;
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/fs/stat.c software-suspend-linux-2.6.2-rc3/fs/stat.c
--- software-suspend-linux-2.6.2-rc3-261patch7/fs/stat.c 2004-01-31 21:27:05.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/fs/stat.c 2004-01-31 21:22:51.000000000 +1300
@@ -353,30 +353,42 @@
{
struct kstat stat;
int error = vfs_stat(filename, &stat);
+ DECLARE_SWSUSP_LOCAL_VAR;
+
+ SWSUSP_ACTIVITY_START(0);
if (!error)
error = cp_new_stat64(&stat, statbuf);
+ SWSUSP_ACTIVITY_END;
return error;
}
asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statbuf)
{
struct kstat stat;
int error = vfs_lstat(filename, &stat);
+ DECLARE_SWSUSP_LOCAL_VAR;
+
+ SWSUSP_ACTIVITY_START(0);
if (!error)
error = cp_new_stat64(&stat, statbuf);
+ SWSUSP_ACTIVITY_END;
return error;
}
asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user * statbuf)
{
struct kstat stat;
int error = vfs_fstat(fd, &stat);
+ DECLARE_SWSUSP_LOCAL_VAR;
+
+ SWSUSP_ACTIVITY_START(0);
if (!error)
error = cp_new_stat64(&stat, statbuf);
+ SWSUSP_ACTIVITY_END;
return error;
}
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/fs/xfs/linux/xfs_buf.c software-suspend-linux-2.6.2-rc3/fs/xfs/linux/xfs_buf.c
--- software-suspend-linux-2.6.2-rc3-261patch7/fs/xfs/linux/xfs_buf.c 2004-01-31 21:11:54.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/fs/xfs/linux/xfs_buf.c 2004-01-31 21:24:28.000000000 +1300
@@ -1709,10 +1709,14 @@
int count;
page_buf_t *pb;
struct list_head *curr, *next, tmp;
+ DECLARE_SWSUSP_LOCAL_VAR;
/* Set up the thread */
daemonize("pagebufd");
- current->flags |= PF_MEMALLOC;
+ current->flags |= PF_MEMALLOC | PF_SYNCTHREAD;
+
+ SWSUSP_THREAD_FLAGS_RESET;
+ SWSUSP_ACTIVITY_START(PF_SYNCTHREAD);
pagebuf_daemon_task = current;
pagebuf_daemon_active = 1;
@@ -1721,12 +1725,12 @@
INIT_LIST_HEAD(&tmp);
do {
/* swsusp */
- if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ SWSUSP_ACTIVITY_SYNCTHREAD_PAUSING;
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(pb_params.flush_interval.val);
+ SWSUSP_ACTIVITY_RESTARTING(PF_SYNCTHREAD);
spin_lock(&pbd_delwrite_lock);
count = 0;
@@ -1771,6 +1775,7 @@
force_flush = 0;
} while (pagebuf_daemon_active);
+ SWSUSP_ACTIVITY_END;
complete_and_exit(&pagebuf_daemon_done, 0);
}
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/kernel/workqueue.c software-suspend-linux-2.6.2-rc3/kernel/workqueue.c
--- software-suspend-linux-2.6.2-rc3-261patch7/kernel/workqueue.c 2004-01-31 21:27:07.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/kernel/workqueue.c 2004-01-31 21:22:59.000000000 +1300
@@ -169,7 +169,7 @@
struct k_sigaction sa;
daemonize("%s/%d", startup->name, cpu);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
cwq->thread = current;
set_user_nice(current, -10);
diff -ruN software-suspend-linux-2.6.2-rc3-261patch7/net/bluetooth/rfcomm/core.c software-suspend-linux-2.6.2-rc3/net/bluetooth/rfcomm/core.c
--- software-suspend-linux-2.6.2-rc3-261patch7/net/bluetooth/rfcomm/core.c 2004-01-31 21:27:07.000000000 +1300
+++ software-suspend-linux-2.6.2-rc3/net/bluetooth/rfcomm/core.c 2004-01-31 21:22:59.000000000 +1300
@@ -52,6 +52,8 @@
#include <net/bluetooth/l2cap.h>
#include <net/bluetooth/rfcomm.h>
+#include <linux/suspend.h>
+
#define VERSION "1.1"
#ifndef CONFIG_BT_RFCOMM_DEBUG
next prev parent reply other threads:[~2004-01-31 8:30 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-30 4:24 Software Suspend 2.0 Nigel Cunningham
2004-01-30 10:04 ` Måns Rullgård
2004-01-30 10:22 ` Nigel Cunningham
2004-01-30 10:25 ` Nigel Cunningham
2004-01-31 18:09 ` Micha Feigin
2004-02-05 0:47 ` Software Suspend 2.0 [for 2.6.2 resend] Hugang
2004-01-31 6:22 ` [Swsusp-devel] Software Suspend 2.0 Luke-Jr
2004-01-31 6:37 ` Nigel Cunningham
2004-01-31 6:48 ` Joseph Pingenot
2004-01-31 6:56 ` Nigel Cunningham
2004-01-31 7:16 ` Joseph Pingenot
2004-01-31 7:28 ` Nigel Cunningham
2004-01-31 7:38 ` Joseph Pingenot
2004-01-31 7:48 ` Nigel Cunningham
2004-01-31 8:32 ` Nigel Cunningham [this message]
2004-01-31 9:03 ` Prakash K. Cheemplavam
2004-01-31 9:08 ` Nigel Cunningham
2004-01-31 9:19 ` Prakash K. Cheemplavam
2004-01-31 9:51 ` Nigel Cunningham
2004-01-31 10:43 ` Prakash K. Cheemplavam
2004-01-31 10:48 ` Prakash K. Cheemplavam
2004-01-31 13:25 ` Måns Rullgård
2004-01-31 23:11 ` Joseph Pingenot
2004-01-31 22:15 ` Måns Rullgård
2004-02-01 0:26 ` Micha Feigin
2004-02-01 1:48 ` oops with 2.6.1-rc1 and rc-3 Prakash K. Cheemplavam
2004-02-01 2:54 ` Micha Feigin
2004-02-01 10:36 ` Prakash K. Cheemplavam
2004-02-01 11:37 ` Prakash K. Cheemplavam
2004-01-31 9:35 ` [Swsusp-devel] Software Suspend 2.0 Éric Brunet
2004-01-31 9:38 ` Nigel Cunningham
2004-01-31 7:22 ` Luke-Jr
2004-01-31 7:31 ` Nigel Cunningham
2004-01-31 8:09 ` Luke-Jr
2004-01-31 8:11 ` Luke-Jr
2004-01-31 8:18 ` Nigel Cunningham
2004-01-31 15:23 ` Sebastian Kugler
2004-02-01 7:08 ` Hugang
2004-02-02 17:01 ` swsusp2 on ppc [Re: Software Suspend 2.0] Marco Giordani
2004-02-03 1:37 ` Hugang
2004-02-03 12:07 ` Marco Giordani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1075537924.17730.88.camel@laptop-linux \
--to=ncunningham@clear.net.nz \
--cc=linux-kernel@vger.kernel.org \
--cc=luke7jr@yahoo.com \
--cc=swsusp-devel@lists.sourceforge.net \
--cc=trelane@digitasaru.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox