From: Zhao Lei <zhaolei@cn.fujitsu.com>
To: <zhaolei@cn.fujitsu.com>, <cgroups@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <mingo@redhat.com>,
<peterz@infradead.org>, <tj@kernel.org>
Subject: [PATCH v2 0/2] cpuacct: rename parameter in cpuusage_write for readability
Date: Fri, 4 Mar 2016 17:47:04 +0800 [thread overview]
Message-ID: <cover.1457082730.git.zhaolei@cn.fujitsu.com> (raw)
The name of 'reset' makes a little confusion in reading, we would
say, if we want to reset usage, return -EINVAL. That's not true.
Actually, we want to say, we only allow user to do a reset. This
patch rename reset to val and add a comment here, making the code
more readable.
Changelog v1->v2:
1: Rebase on top of 4.5-rc6
2: Fix little spelling typo in description.
3: Fix line over 80 characters
4: Add Acked-by: Tejun Heo <tj@kernel.org>
Yang Dongsheng (2):
cpuacct: rename parameter in cpuusage_write for readability
cpuacct: split usage into user_usage and sys_usage.
kernel/sched/cpuacct.c | 151 ++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 129 insertions(+), 22 deletions(-)
--
1.8.5.1
next reply other threads:[~2016-03-04 9:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-04 9:47 Zhao Lei [this message]
2016-03-04 9:47 ` [PATCH v2 1/2] " Zhao Lei
2016-03-11 17:42 ` Tejun Heo
2016-03-04 9:47 ` [PATCH v2 2/2] cpuacct: split usage into user_usage and sys_usage Zhao Lei
2016-03-10 13:27 ` Peter Zijlstra
2016-03-16 10:39 ` Zhao Lei
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=cover.1457082730.git.zhaolei@cn.fujitsu.com \
--to=zhaolei@cn.fujitsu.com \
--cc=cgroups@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tj@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®