PM / OPP: Set cpu_dev->id in cpumask first
authorPi-Cheng Chen <pi-cheng.chen@linaro.org>
Mon, 28 Dec 2015 13:06:17 +0000 (21:06 +0800)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:22:25 +0000 (11:22 +0800)
commitcb8acf6df06ef9b4a708d34e169b420e52d0c941
tree15e4f26cbc11a897b7ef928c7f0adcedfbc52a90
parentff7d038f3c5def395c4b06c156cca9947d4b5a02
PM / OPP: Set cpu_dev->id in cpumask first

Set cpu_dev->id in cpumask first when setting up cpumask for CPUs that
share the same OPP table. This might be helpful when handling cpumask
without the original CPU bitfield set.

Signed-off-by: Pi-Cheng Chen <pi-cheng.chen@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit d9de19b1cc013433ad293365b5b3902ec73dfd60)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/base/power/opp/cpu.c