mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: -mm swsusp: do not default to platform/firmware
@ 2004-07-29  5:19 Li, Shaohua
  2004-07-29  7:38 ` Pavel Machek
  0 siblings, 1 reply; 15+ messages in thread
From: Li, Shaohua @ 2004-07-29  5:19 UTC (permalink / raw)
  To: ncunningham
  Cc: Pavel Machek, Patrick Mochel, Andrew Morton, Linux Kernel Mailing List


Hi,

>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
>owner@vger.kernel.org] On Behalf Of Nigel Cunningham
>Sent: Thursday, July 29, 2004 8:30 AM
>To: Pavel Machek
>Cc: Andrew Morton; Patrick Mochel; akpm@zip.com.au; Linux Kernel
Mailing
>List
>Subject: Re: -mm swsusp: do not default to platform/firmware
>
>Hi.
>
>On Thu, 2004-07-29 at 09:43, Pavel Machek wrote:
>> +I did found some kernel threads don't do it, and they don't freeze,
and
>
>"I found... threads that don't..."
>
>> +so the system can't sleep. Is this a known behavior?
>> +
>> +A: All such kernel threads need to be fixed, one by one. Select
place
>> +where it is safe to be frozen (no kernel semaphores should be held
at
>> +that point and it must be safe to sleep there), and add:
>> +
>> +            if (current->flags & PF_FREEZE)
>> +                    refrigerator(PF_FREEZE);
>> +
>
>Perhaps you should also add.
>
>If the thread is needed for writing the image to storage, you should
>instead set the PF_NOFREEZE process flag when creating the thread.
>
You know for sleep into mem (s3) we also use
'freeze_processes/refrigerator', and the threads don't write image to
storage for S3. Should the threads be set the PF_NOFREEZE? Is there any
side effect for S3 if the threads are running?

Thanks,
Shaohua



^ permalink raw reply	[flat|nested] 15+ messages in thread
* -mm swsusp: do not default to platform/firmware
@ 2004-07-28 22:24 Pavel Machek
  2004-07-28 23:14 ` Andrew Morton
  2004-08-02  6:15 ` Patrick Mochel
  0 siblings, 2 replies; 15+ messages in thread
From: Pavel Machek @ 2004-07-28 22:24 UTC (permalink / raw)
  To: Patrick Mochel, Andrew Morton, kernel list

Hi!

-mm swsusp now defaults to platform/firmware suspend... That's
certainly unexpected, changes behaviour from previous version, and
only works on one of three machines I have here. I'd like the default
to be changed back. Please apply,
								Pavel

--- clean-mm/drivers/acpi/sleep/main.c	2004-07-28 23:39:47.000000000 +0200
+++ linux-mm/drivers/acpi/sleep/main.c	2004-07-28 22:54:43.000000000 +0200
@@ -216,9 +216,7 @@
 			if (acpi_gbl_FACS->S4bios_f) {
 				sleep_states[i] = 1;
 				printk(" S4bios");
-				acpi_pm_ops.pm_disk_mode = PM_DISK_FIRMWARE;
-			} else if (sleep_states[i])
-				acpi_pm_ops.pm_disk_mode = PM_DISK_PLATFORM;
+			}
 		}
 	}
 	printk(")\n");
 
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-08-10 11:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29  5:19 -mm swsusp: do not default to platform/firmware Li, Shaohua
2004-07-29  7:38 ` Pavel Machek
2004-07-29  8:03   ` Nigel Cunningham
  -- strict thread matches above, loose matches on Subject: below --
2004-07-28 22:24 Pavel Machek
2004-07-28 23:14 ` Andrew Morton
2004-07-28 23:39   ` Pavel Machek
2004-07-28 23:43     ` Pavel Machek
2004-07-29  0:30       ` Nigel Cunningham
2004-07-29  7:39         ` Pavel Machek
2004-07-29  7:52           ` Nigel Cunningham
2004-08-02  6:15 ` Patrick Mochel
2004-08-02 15:30   ` Kevin Fenzi
2004-08-03 11:28     ` Karol Kozimor
2004-08-09 19:44       ` Pavel Machek
2004-08-08 17:13   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®