* [PATCH]: Autosleep patch.
@ 2012-08-06 15:13 Christopher Sacchi
2012-08-06 15:38 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Sacchi @ 2012-08-06 15:13 UTC (permalink / raw)
To: linux-wireless; +Cc: Linux Kernel Mailing List
This patch (listed below), changes an old function in autosleep.c in
kernel version 3.5. It's code is listed from the first -- line to the
2nd to last -- line.
This patch was checked with checkpatch.pl with no errors:
--
--- power/autosleep.c 2012-07-21 20:58:29.000000000 +0000
+++ power/autosleepnew.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);
Signed-off-by: Christopher P. Sacchi <chris.sacchi@gmail.com>
--
--
Christopher
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH]: Autosleep patch. 2012-08-06 15:13 [PATCH]: Autosleep patch Christopher Sacchi @ 2012-08-06 15:38 ` Randy Dunlap 2012-08-07 11:07 ` Guenter Roeck 0 siblings, 1 reply; 4+ messages in thread From: Randy Dunlap @ 2012-08-06 15:38 UTC (permalink / raw) To: Christopher Sacchi; +Cc: linux-wireless, Linux Kernel Mailing List On 08/06/2012 08:13 AM, Christopher Sacchi wrote: > This patch (listed below), changes an old function in autosleep.c in > kernel version 3.5. It's code is listed from the first -- line to the > 2nd to last -- line. > This patch was checked with checkpatch.pl with no errors: > -- > --- power/autosleep.c 2012-07-21 20:58:29.000000000 +0000 > +++ power/autosleepnew.c 2012-08-06 10:52:26.000000000 +0000 The file names should include the full path from the top level of the kernel source tree. E.g.: --- linux.orig/kernel/power/autosleep.c +++ linux/kernel/power/autosleep.c This patch uses the name autosleepnew.c, which is not what is required/expected. Your previous patches were for wireless (mac80211) components, so they needed to go to the linux-wireless mailing list. This patch is not about wireless, so don't send it to that mailing list, although you could send it to the linux-pm@vger.kernel.org mailing list. Please see the MAINTAINERS file for where to send patches. > @@ -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); > Signed-off-by: Christopher P. Sacchi <chris.sacchi@gmail.com> > -- Signed-off-by: line is not part of the patch. It should be near the end of the patch description, before the actual patch. Again, please read and follow Documentation/SubmittingPatches. thanks. -- ~Randy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]: Autosleep patch. 2012-08-06 15:38 ` Randy Dunlap @ 2012-08-07 11:07 ` Guenter Roeck 2012-08-07 11:52 ` Rafael J. Wysocki 0 siblings, 1 reply; 4+ messages in thread From: Guenter Roeck @ 2012-08-07 11:07 UTC (permalink / raw) To: Randy Dunlap Cc: Christopher Sacchi, linux-wireless, Linux Kernel Mailing List On Mon, Aug 06, 2012 at 08:38:17AM -0700, Randy Dunlap wrote: > On 08/06/2012 08:13 AM, Christopher Sacchi wrote: > > > This patch (listed below), changes an old function in autosleep.c in > > kernel version 3.5. It's code is listed from the first -- line to the > > 2nd to last -- line. > > This patch was checked with checkpatch.pl with no errors: > > -- > > --- power/autosleep.c 2012-07-21 20:58:29.000000000 +0000 > > +++ power/autosleepnew.c 2012-08-06 10:52:26.000000000 +0000 > > > The file names should include the full path from the top level of the > kernel source tree. E.g.: > > --- linux.orig/kernel/power/autosleep.c > +++ linux/kernel/power/autosleep.c > > This patch uses the name autosleepnew.c, which is not what is > required/expected. > > Your previous patches were for wireless (mac80211) components, so they > needed to go to the linux-wireless mailing list. This patch is not > about wireless, so don't send it to that mailing list, although you > could send it to the linux-pm@vger.kernel.org mailing list. > Please see the MAINTAINERS file for where to send patches. > > > > @@ -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(); > > Plus, this code obviously never compiled. Nor does the submitter ever explain what he actually tries to accomplish. Guenter > > if (!pm_save_wakeup_count(initial_count)) { > > mutex_unlock(&autosleep_lock); > > Signed-off-by: Christopher P. Sacchi <chris.sacchi@gmail.com> > > -- > > Signed-off-by: line is not part of the patch. It should be near the > end of the patch description, before the actual patch. > > Again, please read and follow Documentation/SubmittingPatches. > > thanks. > > -- > ~Randy > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH]: Autosleep patch. 2012-08-07 11:07 ` Guenter Roeck @ 2012-08-07 11:52 ` Rafael J. Wysocki 0 siblings, 0 replies; 4+ messages in thread From: Rafael J. Wysocki @ 2012-08-07 11:52 UTC (permalink / raw) To: Guenter Roeck Cc: Randy Dunlap, Christopher Sacchi, linux-wireless, Linux Kernel Mailing List On Tuesday, August 07, 2012, Guenter Roeck wrote: > On Mon, Aug 06, 2012 at 08:38:17AM -0700, Randy Dunlap wrote: > > On 08/06/2012 08:13 AM, Christopher Sacchi wrote: > > > > > This patch (listed below), changes an old function in autosleep.c in > > > kernel version 3.5. It's code is listed from the first -- line to the > > > 2nd to last -- line. > > > This patch was checked with checkpatch.pl with no errors: > > > -- > > > --- power/autosleep.c 2012-07-21 20:58:29.000000000 +0000 > > > +++ power/autosleepnew.c 2012-08-06 10:52:26.000000000 +0000 > > > > > > The file names should include the full path from the top level of the > > kernel source tree. E.g.: > > > > --- linux.orig/kernel/power/autosleep.c > > +++ linux/kernel/power/autosleep.c > > > > This patch uses the name autosleepnew.c, which is not what is > > required/expected. > > > > Your previous patches were for wireless (mac80211) components, so they > > needed to go to the linux-wireless mailing list. This patch is not > > about wireless, so don't send it to that mailing list, although you > > could send it to the linux-pm@vger.kernel.org mailing list. > > Please see the MAINTAINERS file for where to send patches. > > > > > > > @@ -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(); > > > > > Plus, this code obviously never compiled. Nor does the submitter ever explain > what he actually tries to accomplish. We've discussed this offlist and as far as I can see it there is no bug and nothing needs to be fixed. Thanks, Rafael ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-07 11:47 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-08-06 15:13 [PATCH]: Autosleep patch Christopher Sacchi 2012-08-06 15:38 ` Randy Dunlap 2012-08-07 11:07 ` Guenter Roeck 2012-08-07 11:52 ` Rafael J. Wysocki
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).