S4bios support
Subsystems (3)
Hi!
I ported s4bios support to 2.5.21 and make it somehow work on my machine. It suspend, resumes (with nice graphics ;-), but kernel does not wake up devices properly. If someone wants to play...
Pavel
arch/i386/kernel/suspend.c +15 -0
@@ -302,3 +302,18 @@ do_magic_resume_2(); }#endif + +void do_suspend_magic_s4bios (int resume) +{ +if (!resume) { +save_processor_context (); +acpi_save_register_state ((unsigned long ) &&acpi_sleep_done); +acpi_enter_s4bios (); +return ; + } +acpi_sleep_done: +restore_processor_context (); +printk ("CPU context restored...\n" ); +} + +
drivers/acpi/hardware/hwsleep.c +54 -1
75 lines not on this page · raw message
drivers/acpi/system.c +44 -6
99 lines not on this page · raw message
include/asm-i386/acpi.h +3 -0
@@ -138,6 +138,9 @@/* early initialization routine */ extern void acpi_reserve_bootmem (void ); +extern void do_suspend_magic (int ); +extern void do_suspend_magic_s4 (int ); +#endif /*CONFIG_ACPI_SLEEP*/ #endif /*__KERNEL__*/
include/linux/suspend.h +6 -0
@@ -48,6 +48,9 @@/* mm/vmscan.c */ extern int shrink_mem (void ); +/* kernel/signal.c */ +extern inline void signal_wake_up (struct task_struct *); +/* kernel/suspend.c */ extern void software_suspend (void );extern void software_resume (void );
@@ -55,6 +58,9 @@extern int register_suspend_notifier (struct notifier_block *);extern int unregister_suspend_notifier (struct notifier_block *);extern void refrigerator (unsigned long ); + +extern int freeze_processes (void ); +extern void thaw_processes (void );extern int freeze_processes (void );extern void thaw_processes (void );
Signature · 2 lines
(about SSSCA) "I don't say this lightly. However, I really think that the U.S. no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
Quoted 5 lines · Pavel Machek
Hi!
I ported s4bios support to 2.5.21 and make it somehow work on my machine. It suspend, resumes (with nice graphics ;-), but kernel does not wake up devices properly. If someone wants to play...
What kind of issues you got ?
Signature · 3 lines
Ducrot Bruno http://www.poupinou.org Page profaissionelle http://toto.tu-me-saoules.com Haume page
Quoted 8 lines · Pavel Machek
Quoted 5 lines
Hi!
I ported s4bios support to 2.5.21 and make it somehow work on my machine. It suspend, resumes (with nice graphics ;-), but kernel does not wake up devices properly. If someone wants to play...
What kind of issues you got ?
Lockup on awake.
Signature · 2 lines
Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic.