On 10 July 2013 14:00, Chanwoo Choi <cw00.choi@xxxxxxxxxxx> wrote: > On 07/09/2013 06:23 PM, Viresh Kumar wrote: >> On 5 July 2013 14:16, Chanwoo Choi <cw00.choi@xxxxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html