commit | 8fa5b631f32238a16ae3db0db5b354f7b9eb20cb | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Mon Aug 03 08:36:15 2015 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Sep 01 15:50:38 2015 +0200 |
tree | 9475cc924805ec0f2aec76dfd2aa14f9e820ad34 | |
parent | 6bfb7c7434f75d29241413dc7e784295ba56de98 [diff] |
cpufreq: use memcpy() to copy policy cpufreq_get_policy() is useful if the pointer to policy isn't available in advance. But if it is available, then there is no need to call cpufreq_get_policy(). Directly use memcpy() to copy the policy. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>