Re: [PATCH] cpufreq: remove sysfs files for CPU which failed to come back after resume

2013-12-20 Thread Viresh Kumar
On 20 December 2013 20:44, Rafael J. Wysocki wrote: > Well, this just looks odd. Please do > > return sysfs_create_link(&dev->kobj, &policy->kobj, "cpufreq"); Yeah, that was stupid :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

Re: [PATCH] cpufreq: remove sysfs files for CPU which failed to come back after resume

2013-12-20 Thread Rafael J. Wysocki
On Friday, December 20, 2013 10:38:20 AM Viresh Kumar wrote: > There are cases where cpufreq_add_dev() may fail for some CPUs during resume. > With the current code we will still have sysfs cpufreq files for such CPUs, > and > struct cpufreq_policy would be already freed for them. Hence any operat

[PATCH] cpufreq: remove sysfs files for CPU which failed to come back after resume

2013-12-19 Thread Viresh Kumar
There are cases where cpufreq_add_dev() may fail for some CPUs during resume. With the current code we will still have sysfs cpufreq files for such CPUs, and struct cpufreq_policy would be already freed for them. Hence any operation on those sysfs files would result in kernel warnings. To fix this