From: Viresh Kumar Date: Mon, 3 Aug 2015 03:06:16 +0000 (+0530) Subject: cpufreq: update user_policy.* on success X-Git-Tag: omap-for-v4.3/fixes-rc1~121^2~4^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ca0bdfdd6b422027b9b733abb0bf151811eaa7;p=pandora-kernel.git cpufreq: update user_policy.* on success 'user_policy' caches properties of a policy that are set by userspace. And these must be updated only if cpufreq core was successful in updating them based on request from user space. In store_scaling_governor(), we are updating user_policy.policy and user_policy.governor even if cpufreq_set_policy() failed. That's incorrect. Fix this by updating user_policy.* only if we were successful in updating the properties. Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed