Re: [PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread Daniel Lezcano
On 09/10/2014 03:08 PM, Pi-Cheng Chen wrote: On 10 September 2014 17:15, Daniel Lezcano wrote: On 09/10/2014 09:33 AM, pi-cheng.chen wrote: When using intel_pstate driver, "scaling_available_freqs" attr is not exported to sysfs. It causes assertion of idlestat due to memory of struct cpufreq_

Re: [PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread Pi-Cheng Chen
On 10 September 2014 17:15, Daniel Lezcano wrote: > On 09/10/2014 09:33 AM, pi-cheng.chen wrote: >> >> When using intel_pstate driver, "scaling_available_freqs" attr is not >> exported to sysfs. It causes assertion of idlestat due to memory of >> struct cpufreq_pstate was not allocated. >> >> Allo

Re: [PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread Daniel Lezcano
On 09/10/2014 09:33 AM, pi-cheng.chen wrote: When using intel_pstate driver, "scaling_available_freqs" attr is not exported to sysfs. It causes assertion of idlestat due to memory of struct cpufreq_pstate was not allocated. Allocate struct cpufreq_pstate dynamically when getting frequency inform

[PATCH v2] idlestat: Allocate struct cpufreq_pstate dynamically

2014-09-10 Thread pi-cheng.chen
When using intel_pstate driver, "scaling_available_freqs" attr is not exported to sysfs. It causes assertion of idlestat due to memory of struct cpufreq_pstate was not allocated. Allocate struct cpufreq_pstate dynamically when getting frequency information from trace file instead of parsing availa