All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Christopher Sacchi <chris.sacchi@gmail.com>
Cc: linux-pm@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH]: Updated autosleep.patch
Date: Mon, 6 Aug 2012 21:47:34 +0200	[thread overview]
Message-ID: <201208062147.34806.rjw@sisk.pl> (raw)
In-Reply-To: <CAGh4K3Juk1SRYK363M8YMVD9HnFWO+41r+Uf94rWdM36FQ7LZw@mail.gmail.com>

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

      reply	other threads:[~2012-08-06 19:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 16:24 [PATCH]: Updated autosleep.patch Christopher Sacchi
2012-08-06 19:47 ` Rafael J. Wysocki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201208062147.34806.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=chris.sacchi@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.