Re: [PATCH] cpufreq: acpi_cpufreq: base frequency attribute support
From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2016-02-25 03:27:25
From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2016-02-25 03:27:25
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 ? -- viresh