Fix memory leak in cpufreq stats.
When system enters sleep, non-boot CPUs will be disabled. Cpufreq stats sysfs is created when the CPU is up, but it is not freed when the CPU is going down. This will cause memory leak. Signed-off-by: Nxiaobing tu <xiaobing.tu@intel.com> Signed-off-by: Nguifang tang <guifang.tang@intel.com> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing
想要评论请 注册 或 登录