lkml.org 
[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Bug: swsusp in 2.5.42: "Scheduling while atomic"
On Thu, 17 Oct 2002 16:36:13 -0700
Eric Altendorf <EricAltendorf@orst.edu> wrote:

|
|[1.] One line summary of the problem:
|
|Scheduling while atomic debug message during swsusp
|
|[2.] Full description of the problem/report:
|
|While swsusp'ing to disk, vast quantities of error messages are echoed to the
|console, along the lines of the following pulled from /var/log/messages:

This Problem is net lay resume recall problem. Try this patch, From my test it can works in net card device, but it can not work in sound card device.
-------------------------
--- linus-2.5/kernel/suspend.c Fri Oct 18 09:22:36 2002
+++ linus-2.5-suspend/kernel/suspend.c Thu Oct 17 20:42:08 2002
@@ -627,7 +627,7 @@
/* Make disk drivers accept operations, again */
static void drivers_unsuspend(void)
{
- device_resume(RESUME_RESTORE_STATE);
+ /* device_resume(RESUME_RESTORE_STATE); */
device_resume(RESUME_ENABLE);
}

@@ -655,7 +655,7 @@
static void drivers_resume(int flags)
{
if (flags & RESUME_PHASE1) {
- device_resume(RESUME_RESTORE_STATE);
+ /* device_resume(RESUME_RESTORE_STATE); */
device_resume(RESUME_ENABLE);
}
if (flags & RESUME_PHASE2) {

--
- Hu Gang
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.052 / U:2.848 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site