diff options
| author | Rafael J. Wysocki <[email protected]> | 2013-12-27 00:07:11 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2013-12-29 14:30:36 +0000 |
| commit | 72368d122c7479aa6e14fbbd334717b8a0c157a6 (patch) | |
| tree | cf521f1fb24d4a77c5b1dc9df0d896d9f0db9729 /net/unix/af_unix.c | |
| parent | cpufreq: Use CONFIG_CPU_FREQ_DEFAULT_* to set initial policy for setpolicy dr... (diff) | |
| download | kernel-72368d122c7479aa6e14fbbd334717b8a0c157a6.tar.gz kernel-72368d122c7479aa6e14fbbd334717b8a0c157a6.zip | |
cpufreq: Clean up after a failing light-weight initialization
If cpufreq_policy_restore() returns NULL during system resume,
__cpufreq_add_dev() should just fall back to the full initialization
instead of returning an error, because that may actually make things
work. Moreover, it should not leave stale fallback data behind after
it has failed to restore a previously existing policy.
This change is based on Viresh Kumar's work.
Fixes: 5302c3fb2e62 ("cpufreq: Perform light-weight init/teardown during suspend/resume")
Reported-by: Bjørn Mork <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Cc: 3.12+ <[email protected]> # 3.12+
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
