linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PM] Fix up wrong comments
@ 2003-07-26 22:53 Pavel Machek
  2003-08-05  0:55 ` Patrick Mochel
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2003-07-26 22:53 UTC (permalink / raw)
  To: kernel list, Patrick Mochel

Hi!

This fixes add wrong comments, and adds comment about pitfalls of
calling BIOS.

Index: linux/drivers/input/power.c
===================================================================
--- linux.orig/drivers/input/power.c	2003-07-22 13:39:42.000000000 +0200
+++ linux/drivers/input/power.c	2003-07-20 14:35:05.000000000 +0200
@@ -45,9 +45,7 @@
 static int suspend_button_pushed = 0;
 static void suspend_button_task_handler(void *data)
 {
-        //extern void pm_do_suspend(void);
         udelay(200); /* debounce */
-        //pm_do_suspend();
         suspend_button_pushed = 0;
 }
 
@@ -67,8 +65,6 @@
 			case KEY_SUSPEND:
 				printk("Powering down entire device\n");
 
-				//pm_send_all(PM_SUSPEND, dev);
-
 				if (!suspend_button_pushed) {
                 			suspend_button_pushed = 1;
                         		schedule_work(&suspend_button_task);
Index: linux/drivers/acpi/sleep/main.c
===================================================================
--- linux.orig/drivers/acpi/sleep/main.c	2003-07-22 13:39:42.000000000 +0200
+++ linux/drivers/acpi/sleep/main.c	2003-07-22 12:53:27.000000000 +0200
@@ -69,10 +81,6 @@
  * First, we call to the device driver layer to save device state.
  * Once we have that, we save whatevery processor and kernel state we
  * need to memory.
- * If we're entering S4, we then write the memory image to disk.
- *
- * Only then is it safe for us to power down devices, since we may need
- * the disks and upstream buses to write to.
  */
 acpi_status
 acpi_system_save_state(
Index: linux/include/linux/reboot.h
===================================================================
--- linux.orig/include/linux/reboot.h	2003-07-22 13:39:42.000000000 +0200
+++ linux/include/linux/reboot.h	2003-07-17 22:22:58.000000000 +0200
@@ -21,7 +21,7 @@
  * CAD_OFF     Ctrl-Alt-Del sequence sends SIGINT to init task.
  * POWER_OFF   Stop OS and remove all power from system, if possible.
  * RESTART2    Restart system using given command string.
- * SW_SUSPEND  Suspend system using Software Suspend if compiled in
+ * SW_SUSPEND  Suspend system using software suspend if compiled in.
  */
 
 #define	LINUX_REBOOT_CMD_RESTART	0x01234567
Index: linux/arch/i386/kernel/acpi/wakeup.S
===================================================================
--- linux.orig/arch/i386/kernel/acpi/wakeup.S	2003-07-22 13:39:42.000000000 +0200
+++ linux/arch/i386/kernel/acpi/wakeup.S	2003-07-22 13:26:01.000000000 +0200
@@ -43,6 +43,11 @@
 
 	testl	$1, video_flags - wakeup_code
 	jz	1f
+	/* It is miracle that this works:
+	   * PCI may or may not be initialized at this point
+	   * I'm told we should pass device ID to video bios
+	   However it works on some real machines...
+	 */
 	lcall   $0xc000,$3
 	movw	%cs, %ax
 	movw	%ax, %ds					# Bios might have played with that

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

* Re: [PM] Fix up wrong comments
  2003-07-26 22:53 [PM] Fix up wrong comments Pavel Machek
@ 2003-08-05  0:55 ` Patrick Mochel
  2003-08-05  9:13   ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Mochel @ 2003-08-05  0:55 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list


> This fixes add wrong comments, and adds comment about pitfalls of
> calling BIOS.

I didn't apply this, because I would rather see it described in a piece of
real documentation (Documentation/swsusp.txt or e.g.
Documentation/power/video.txt) and explained as much as possible.

Thanks,

	-pat


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

* Re: [PM] Fix up wrong comments
  2003-08-05  0:55 ` Patrick Mochel
@ 2003-08-05  9:13   ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2003-08-05  9:13 UTC (permalink / raw)
  To: Patrick Mochel; +Cc: kernel list

Hi!

> > This fixes add wrong comments, and adds comment about pitfalls of
> > calling BIOS.
> 
> I didn't apply this, because I would rather see it described in a piece of
> real documentation (Documentation/swsusp.txt or e.g.
> Documentation/power/video.txt) and explained as much as possible.

Okay, I'll do that.
								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

end of thread, other threads:[~2003-08-05  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-26 22:53 [PM] Fix up wrong comments Pavel Machek
2003-08-05  0:55 ` Patrick Mochel
2003-08-05  9: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;
as well as URLs for NNTP newsgroup(s).