From: "Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
To: "viresh.kumar@linaro.org" <viresh.kumar@linaro.org>
Cc: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"rafael@kernel.org" <rafael@kernel.org>
Subject: Re: [PATCH] cpufreq: acpi_cpufreq: base frequency attribute support
Date: Fri, 26 Feb 2016 01:10:04 +0000 [thread overview]
Message-ID: <1456448914.17628.31.camel@intel.com> (raw)
In-Reply-To: <1456423672.17628.9.camel@linux.intel.com>
On Thu, 2016-02-25 at 10:07 -0800, Srinivas Pandruvada wrote:
> On Thu, 2016-02-25 at 08:57 +0530, Viresh Kumar wrote:
> > On 24-02-16, 15:37, Srinivas Pandruvada wrote:
> > > Good I tested again.
> > >
> > > Hi Viresh,
> > >
> > > Are we no longer allowed to call
> > > sysfs_create_file in cpufreq_driver.init() callback?
> > >
> > > The following call crashes because of BUG_ON for !kobj->sd:
> > > sysfs_create_file(&policy->kobj,
> > >
> > > &(cpufreq_attr_base_frequency.attr));
> > >
> > > Before I debug further, I want to check with you.
> > > This used to work before.
> >
> > Haven't checked that yet, but you should be using
> > cpufreq_driver.attr
> > for this
> > kind of stuff, isn't it ?
> If I use cpufreq_driver.attr, then it will create sysfs attribute for
> every system using acpi-cpufreq, whether they can support it or not.
> This change is only needed for the later generation of Intel CPUs
> (IvyBridge and later).
> There is no standard ACPI way to know the base frequency if we add
> attribute for all systems using acpi-cpufreq.
>
There is used to be
cpufreq_policy_alloc() {
..
ret = kobject_init_and_add(&policy->kobj, &ktype_cpufreq,
&dev>kobj, "cpufreq");
}
Now it is removed, so we don't have directory entry for policy->kobj to
add during init() callback. Now we have kobject_add after init()
callback returns for policy%u.
Thanks,
Srinivas
next prev parent reply other threads:[~2016-02-26 1:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 22:25 [PATCH] cpufreq: acpi_cpufreq: base frequency attribute support Srinivas Pandruvada
2015-10-07 17:23 ` Viresh Kumar
2015-10-09 15:34 ` Srinivas Pandruvada
2015-10-15 22:45 ` Rafael J. Wysocki
2015-10-16 5:42 ` Viresh Kumar
2016-02-24 20:00 ` Srinivas Pandruvada
2016-02-24 20:05 ` Rafael J. Wysocki
2016-02-24 23:37 ` Srinivas Pandruvada
2016-02-25 3:27 ` Viresh Kumar
2016-02-25 18:07 ` Srinivas Pandruvada
2016-02-26 1:10 ` Pandruvada, Srinivas [this message]
2016-02-26 1:57 ` Viresh Kumar
2016-02-26 20:21 ` Srinivas Pandruvada
2016-02-29 3:16 ` Viresh Kumar
2016-02-29 17:11 ` Srinivas Pandruvada
2016-03-01 2:16 ` Viresh Kumar
-- strict thread matches above, loose matches on Subject: below --
2016-02-29 20:36 Srinivas Pandruvada
2016-03-01 2:28 ` Viresh Kumar
2016-03-01 18:10 ` Srinivas Pandruvada
2016-03-02 2:38 ` 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=1456448914.17628.31.camel@intel.com \
--to=srinivas.pandruvada@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.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 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.