From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Nishanth Menon <nm@ti.com>
Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>,
linux-pm@vger.kernel.org, Kukjin Kim <kgene.kim@samsung.com>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
Viresh Kumar <viresh.kumar@linaro.org>,
lkml <linux-kernel@vger.kernel.org>,
cpufreq@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
Thomas Abraham <thomas.abraham@linaro.org>,
Inderpal Singh <inderpal.singh@linaro.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [RESEND PATCH V6 1/4] cpufreq: exynos: Add cpufreq driver for exynos5440
Date: Fri, 12 Apr 2013 13:19:28 +0200 [thread overview]
Message-ID: <1586707.acL064pYmb@vostro.rjw.lan> (raw)
In-Reply-To: <CAGo_u6oZM0K8XDMtmXKFyoGy2qf+-HSPvU0EMangM5Jj_prKsA@mail.gmail.com>
On Thursday, April 11, 2013 06:23:52 PM Nishanth Menon wrote:
> Hi,
> On Mon, Apr 8, 2013 at 4:57 AM, Amit Daniel Kachhap
> <amit.daniel@samsung.com> wrote:
> > +
> > +static int init_div_table(void)
> > +{
> > + struct cpufreq_frequency_table *freq_tbl = dvfs_info->freq_table;
> > + unsigned int tmp, clk_div, ema_div, freq, volt_id;
> > + int i = 0;
> > + struct opp *opp;
> > +
> > + for (i = 0; freq_tbl[i].frequency != CPUFREQ_TABLE_END; i++) {
> > +
> > + opp = opp_find_freq_exact(dvfs_info->dev,
> > + freq_tbl[i].frequency * 1000, true);
> > + if (IS_ERR(opp)) {
> > + dev_err(dvfs_info->dev,
> > + "failed to find valid OPP for %u KHZ\n",
> > + freq_tbl[i].frequency);
> > + return PTR_ERR(opp);
> > + }
> please use RCU read locks.
>
> > +
> > + freq = freq_tbl[i].frequency / 1000; /* In MHZ */
> > + clk_div = ((freq / CPU_DIV_FREQ_MAX) & P0_7_CPUCLKDEV_MASK)
> > + << P0_7_CPUCLKDEV_SHIFT;
> > + clk_div |= ((freq / CPU_ATB_FREQ_MAX) & P0_7_ATBCLKDEV_MASK)
> > + << P0_7_ATBCLKDEV_SHIFT;
> > + clk_div |= ((freq / CPU_DBG_FREQ_MAX) & P0_7_CSCLKDEV_MASK)
> > + << P0_7_CSCLKDEV_SHIFT;
> > +
> > + /* Calculate EMA */
> > + volt_id = opp_get_voltage(opp);
> Please use RCU read locks as documented for OPP library.
Argh. I overlooked that and the series has been applied already. Care to send
a fix against linux-pm.git/linux-next?
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2013-04-12 11:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-08 8:17 [PATCH V6 0/4] cpufreq: exynos5440: support for cpufreq driver Amit Daniel Kachhap
2013-04-08 8:17 ` [PATCH V6 1/4] cpufreq: exynos: Add cpufreq driver for exynos5440 Amit Daniel Kachhap
2013-04-08 8:47 ` Viresh Kumar
2013-04-08 9:16 ` Viresh Kumar
2013-04-08 9:57 ` [RESEND PATCH " Amit Daniel Kachhap
2013-04-11 23:23 ` Nishanth Menon
2013-04-12 11:19 ` Rafael J. Wysocki [this message]
2013-04-12 11:51 ` amit daniel kachhap
2013-04-08 9:59 ` [PATCH " amit daniel kachhap
2013-04-08 8:17 ` [PATCH V6 2/4] cpufreq: exynos: Remove error return even if no soc is found Amit Daniel Kachhap
2013-04-08 8:17 ` [PATCH V6 3/4] arm: exynos: Enable OPP library support for exynos5440 Amit Daniel Kachhap
2013-04-08 8:17 ` [PATCH V6 4/4] arm: dts: Add cpufreq controller node for Exynos5440 SoC Amit Daniel Kachhap
2013-04-08 10:00 ` [PATCH V6 0/4] cpufreq: exynos5440: support for cpufreq driver Viresh Kumar
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=1586707.acL064pYmb@vostro.rjw.lan \
--to=rjw@sisk.pl \
--cc=amit.daniel@samsung.com \
--cc=cpufreq@vger.kernel.org \
--cc=inderpal.singh@linaro.org \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nm@ti.com \
--cc=s.nawrocki@samsung.com \
--cc=thomas.abraham@linaro.org \
--cc=viresh.kumar@linaro.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