All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: Updated autosleep.patch
@ 2012-08-06 16:24 Christopher Sacchi
  2012-08-06 19:47 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Sacchi @ 2012-08-06 16:24 UTC (permalink / raw)
  To: linux-pm; +Cc: Linux Kernel Mailing List

This is the patch that fixes a function that could be changed. The
following (above the 2nd to last line, but uder the first line:
--
Signed-off-by: Christopher P. Sacchi <chris.sacchi@gmail.com>
--- linux-3.5/kernel/power/autosleep.c	2012-07-21 20:58:29.000000000 +0000
+++ linux-3.5/kernel/power/autosleep.c	2012-08-06 10:52:26.000000000 +0000
@@ -30,7 +30,7 @@ static void try_to_suspend(struct work_s
 	if (!pm_get_wakeup_count(&initial_count, true))
 		goto out;

-	mutex_lock(&autosleep_lock);
+	mutex_lock_interruptable();

 	if (!pm_save_wakeup_count(initial_count)) {
 		mutex_unlock(&autosleep_lock);
--

-- 
Christopher

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

* Re: [PATCH]: Updated autosleep.patch
  2012-08-06 16:24 [PATCH]: Updated autosleep.patch Christopher Sacchi
@ 2012-08-06 19:47 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2012-08-06 19:47 UTC (permalink / raw)
  To: Christopher Sacchi; +Cc: linux-pm, Linux Kernel Mailing List

On Monday, August 06, 2012, Christopher Sacchi wrote:
> This is the patch that fixes a function that could be changed. The
> following (above the 2nd to last line, but uder the first line:
> --
> Signed-off-by: Christopher P. Sacchi <chris.sacchi@gmail.com>
> --- linux-3.5/kernel/power/autosleep.c	2012-07-21 20:58:29.000000000 +0000
> +++ linux-3.5/kernel/power/autosleep.c	2012-08-06 10:52:26.000000000 +0000
> @@ -30,7 +30,7 @@ static void try_to_suspend(struct work_s
>  	if (!pm_get_wakeup_count(&initial_count, true))
>  		goto out;
> 
> -	mutex_lock(&autosleep_lock);
> +	mutex_lock_interruptable();

I guess you mean mutex_lock_interruptable(&autosleep_lock), right?

> 
>  	if (!pm_save_wakeup_count(initial_count)) {
>  		mutex_unlock(&autosleep_lock);
> --

Please tell me what problem is fixed by this change.

Thanks,
Rafael

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

end of thread, other threads:[~2012-08-06 19:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-06 16:24 [PATCH]: Updated autosleep.patch Christopher Sacchi
2012-08-06 19:47 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.