Messages in this thread | | | Date | Mon, 15 Jul 2013 15:32:08 +0530 | Subject | Re: [PATCH 1/6] cpufreq: Add debugfs directory for cpufreq | From | Viresh Kumar <> |
| |
On 10 July 2013 14:00, Chanwoo Choi <cw00.choi@samsung.com> wrote: > On 07/09/2013 06:23 PM, Viresh Kumar wrote: >> On 5 July 2013 14:16, Chanwoo Choi <cw00.choi@samsung.com> wrote:
>>> +static struct dentry *cpufreq_debugfs; >> >> Probably make this dependent on CONFIG_CPU_FREQ_STAT? > > I thought that '/sys/kernel/debug/cpufreq' is always created in the same as sysfs file > when added cpufreq driver. Only the debugfs file(/sys/kernel/debug/cpufreq/load_table) > has the dependency on CONFIG_CPU_FREQ_STAT. > > If *cpufreq_debugfs has the dependency on CONFIG_CPU_FREQ_STAT, > I should add checking statement with '#ifdef CONFIG_CPU_FREQ_STAT' keyword in cpufreq.c. > > What is your opinion to add the dependency of CONFIG_CPU_FREQ_STAT > in cpufreq.c?
I thought this is yet another piece of stats that we may or maynot use. And it should be configurable if user wants it or not. So, probably you need to have dependency on CONFIG_CPU_FREQ_STAT
| |