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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Jan 2016 23:48:11 +0000 (00:48 +0100)
commitd9de19b1cc013433ad293365b5b3902ec73dfd60
tree832e9bff6d22df7c36f5aa7747d543ad22745792
parentfd8d8e63467c922be9ae4452cca2980d473477d9
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>
drivers/base/power/opp/cpu.c