From: MyungJoo Ham <myungjoo.ham@samsung.com>
To: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Cc: 박경민 <kyungmin.park@samsung.com>
Subject: Re: [PATCH] PM / devfreq: Fix governor_store()
Date: Wed, 30 Sep 2015 05:06:57 +0000 (GMT) [thread overview]
Message-ID: <1450775314.375691443589617008.JavaMail.weblogic@epmlwas03d> (raw)
> Writing the currently set governor into sysfs currently
> seems to fail.
> Fix this by setting the return code to zero before
> leaving governor_store().
>
> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Thank you for pointing that out.
Applied.
Cheers,
MyungJoo
> ---
> drivers/devfreq/devfreq.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
> index 3927ed9..4f1b0ce 100644
> --- a/drivers/devfreq/devfreq.c
> +++ b/drivers/devfreq/devfreq.c
> @@ -795,8 +795,10 @@ static ssize_t governor_store(struct device *dev, struct device_attribute *attr,
> ret = PTR_ERR(governor);
> goto out;
> }
> - if (df->governor == governor)
> + if (df->governor == governor) {
> + ret = 0;
> goto out;
> + }
>
> if (df->governor) {
> ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL);
> --
> 2.0.5
next reply other threads:[~2015-09-30 5:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 5:06 MyungJoo Ham [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-09-21 18:23 [PATCH] PM / devfreq: Fix governor_store() Tobias Jakobi
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=1450775314.375691443589617008.JavaMail.weblogic@epmlwas03d \
--to=myungjoo.ham@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-pm@vger.kernel.org \
--cc=tjakobi@math.uni-bielefeld.de \
/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