From: MyungJoo Ham <myungjoo.ham@samsung.com>
To: Xiaoguang Chen <chenxg@marvell.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: 박경민 <kyungmin.park@samsung.com>,
"mturquette@ti.com" <mturquette@ti.com>,
"axel.lin@gmail.com" <axel.lin@gmail.com>
Subject: Re: [PATCH] PM: Devfreq: fix userspace governor frequency bug
Date: Tue, 03 Jul 2012 09:53:27 +0000 (GMT) [thread overview]
Message-ID: <27961064.113941341309207263.JavaMail.weblogic@epml05> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=euc-kr, Size: 1829 bytes --]
> The frequency set by userspace governor may not the
> same as the final frequency. If this condition happens,
> then "cat set_freq" will return a wrong value which is
> inconsistant with the real frequency.
>
> This patch updates data->user_frequency after calling
> of update_devfreq. use devfreq->revious_freq as the
> final user_frequency.
>
> Signed-off-by: Xiaoguang Chen <chenxg@marvell.com>
No, this is not a bug.
---- quoting Documentation/ABI/testing/sysfs-class-devfreq ----
What: /sys/class/devfreq/.../userspace/set_freq
Date: September 2011
Contact: MyungJoo Ham <myungjoo.ham@samsung.com>
Description:
The /sys/class/devfreq/.../userspace/set_freq shows and
sets the requested frequency for the devfreq object if
userspace governor is in effect.
---- quote ended ----
set_freq shows the requested frequency, not the actual frequency value.
If you want to see the actual current frequency intended by devfreq,
use "cur_freq".
Cheers!
MyungJoo
> ---
> drivers/devfreq/governor_userspace.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/devfreq/governor_userspace.c b/drivers/devfreq/governor_userspace.c
> index 0681246..85ad80a 100644
> --- a/drivers/devfreq/governor_userspace.c
> +++ b/drivers/devfreq/governor_userspace.c
> @@ -59,6 +59,7 @@ static ssize_t store_freq(struct device *dev, struct device_attribute *attr,
> err = update_devfreq(devfreq);
> if (err == 0)
> err = count;
> + data->user_frequency = devfreq->previous_freq;
> mutex_unlock(&devfreq->lock);
> return err;
> }
> --
> 1.7.0.4
>
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
next reply other threads:[~2012-07-03 9:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 9:53 MyungJoo Ham [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-07-03 9:08 Xiaoguang Chen
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=27961064.113941341309207263.JavaMail.weblogic@epml05 \
--to=myungjoo.ham@samsung.com \
--cc=axel.lin@gmail.com \
--cc=chenxg@marvell.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@ti.com \
/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
Powered by JetHome