From: Andrew Morton <akpm@linux-foundation.org>
To: fli24 <fei.li@intel.com>
Cc: rjw@sisk.pl, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, chuansheng.liu@intel.com
Subject: Re: [PATCH] suspend: enable freeze timeout configuration through sysctl
Date: Tue, 29 Jan 2013 16:36:47 -0800 [thread overview]
Message-ID: <20130129163647.47ca83fa.akpm@linux-foundation.org> (raw)
In-Reply-To: <1359428300.3211.3.camel@fli24-HP-Compaq-8100-Elite-CMT-PC>
On Tue, 29 Jan 2013 10:58:20 +0800
fli24 <fei.li@intel.com> wrote:
> At present, the timeout value for freezing tasks is fixed as 20s,
> which is too long for handheld device usage, especially for mobile
> phone.
>
> In order to improve user experience, we enable freeze timeout
> configuration through sysctl, so that we can tune the value easily
> for concrete usage, such as smaller value for handheld device such
> as mobile phone.
>
> ...
>
The patch looks nice - it does everything right in places where things
are frequently done wrongly. Except..
It forgot to document the sysctl. Documentation/sysctl/kernel.txt, I
guess.
Is /proc/sys/kernel the most appropriate place for this? Perhaps a
PM-specific place would be better. Maybe not.
> --- a/include/linux/freezer.h
> +++ b/include/linux/freezer.h
> @@ -13,6 +13,11 @@ extern bool pm_freezing; /* PM freezing in effect */
> extern bool pm_nosig_freezing; /* PM nosig freezing in effect */
>
> /*
> + * Timeout for stopping processes
> + */
> +extern unsigned int sysctl_freeze_process_timeout_secs;
I suggest the use of milliseconds here. Someone might want a
half-second timeout and it's pretty pointless to design the interface
in a way which rules that out.
next prev parent reply other threads:[~2013-01-30 0:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 2:58 [PATCH] suspend: enable freeze timeout configuration through sysctl fli24
2013-01-29 11:42 ` Rafael J. Wysocki
2013-01-30 6:22 ` Li, Fei
2013-01-30 6:22 ` Li, Fei
2013-01-30 0:36 ` Andrew Morton [this message]
2013-01-30 6:23 ` Li, Fei
2013-01-30 6:23 ` [PATCH V2] suspend: enable freeze timeout configuration through sys fli24
2013-01-30 13:09 ` Rafael J. Wysocki
2013-01-31 5:00 ` Li, Fei
2013-01-31 5:00 ` Li, Fei
2013-01-31 4:55 ` [PATCH V3] " fli24
2013-01-31 7:29 ` Yasuaki Ishimatsu
2013-01-31 7:29 ` Yasuaki Ishimatsu
2013-01-31 9:13 ` Li, Fei
2013-01-31 9:13 ` Li, Fei
2013-01-31 9:52 ` anish singh
2013-01-31 22:29 ` Rafael J. Wysocki
2013-02-01 1:33 ` Li, Fei
2013-02-01 1:33 ` Li, Fei
2013-02-01 1:56 ` Yasuaki Ishimatsu
2013-02-01 2:02 ` Liu, Chuansheng
2013-02-01 2:02 ` Liu, Chuansheng
2013-02-01 8:56 ` [PATCH V4] " fli24
2013-02-03 13:41 ` Rafael J. Wysocki
2013-02-04 3:08 ` Li, Fei
2013-02-04 3:08 ` Li, Fei
2013-02-04 3:15 ` Alan Stern
2013-02-04 4:32 ` Liu, Chuansheng
2013-02-04 12:22 ` Rafael J. Wysocki
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=20130129163647.47ca83fa.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=chuansheng.liu@intel.com \
--cc=fei.li@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@sisk.pl \
/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.