lkml.org 
[lkml]   [2004]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [linux-pm] [PATCH] make pm_suspend_disk suspend/resume sysdev and dpm_off_irq
Date
From
Pavel Machek wrote:
> Okay, this should be better patch. It works here.

device_power_down() might fail, in this case we should
bail out, right?

Thanks,
-yi

> --- clean/kernel/power/swsusp.c 2004-10-19
> 14:16:29.000000000 +0200
> +++ linux/kernel/power/swsusp.c 2004-11-25
> 12:27:35.000000000 +0100
> @@ -854,11 +840,13 @@
> if ((error = arch_prepare_suspend()))
> return error;
> local_irq_disable();
> + device_power_down(3);
> save_processor_state();
> error = swsusp_arch_suspend();
> /* Restore control flow magically appears here */
> restore_processor_state(); restore_highmem();
> + device_power_up();
> local_irq_enable();
> return error;
> }
> @@ -878,6 +866,7 @@
> {
> int error;
> local_irq_disable();
> + device_power_down(3);
> /* We'll ignore saved state, but this gets preempt count (etc)
> right */ save_processor_state();
> error = swsusp_arch_resume();
> @@ -887,6 +876,7 @@
> BUG_ON(!error);
> restore_processor_state();
> restore_highmem();
> + device_power_up();
> local_irq_enable();
> return error;
> }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.039 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site