OSDN Git Service

cpufreq: use memcpy() to copy policy
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 3 Aug 2015 03:06:15 +0000 (08:36 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Sep 2015 13:50:38 +0000 (15:50 +0200)
commit8fa5b631f32238a16ae3db0db5b354f7b9eb20cb
tree9475cc924805ec0f2aec76dfd2aa14f9e820ad34
parent6bfb7c7434f75d29241413dc7e784295ba56de98
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>
drivers/cpufreq/cpufreq.c