Re: [PATCH Resend] cpufreq: remove sysfs files for CPU which failed to come back after resume
From: BjÃrn Mork
Date: Mon Dec 23 2013 - 04:48:38 EST
viresh kumar <viresh.kumar@xxxxxxxxxx> writes:
> On Monday 23 December 2013 12:25 PM, BjÃrn Mork wrote:
>> That's correct. The immediate result of the failure is exactly the
>> same.
>
> Okay..
>
>> The difference is that a subsequent resume would restore the cpufreq
>> device whether it existed or not. That made a complete suspend/resume
>> fix up any missing cpufreq device, e.g. one that was removed by a
>> previous error.
>
> I see.. Please see if below patch fixes it for you, it should :)
Confirmed. With that patch on top of the current pm-cpufreq branch all
functionality is restored and there are no regressions AFAICS.
I still don't understand why you want to add this hackish half-assed
suspend implementation, but at least it doesn't seem to break anything
anymore. But if you really want to implement suspend/resume, then you
do need to keep the whole device and not just the sysfs files. Keeping
the attribute files allow you to save and restore changed permissions,
but it doesn't save any user modified settings. What's the point of
that? Is the next step yet another hack to save those? Where does this
end?
Why not implement proper support for suspending the "cpufreq device",
and *then* enable suspend/resume support?
Well, not my problem... Just wondering really.
BjÃrn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/