ARM: 7347/1: SCU: use cpu_logical_map for per-CPU low power mode
From: Will Deacon <firstname.lastname@example.org>
scu_power_mode changes the power mode for the current CPU, which it
determines from smp_processor_id(). However, this assumes that the
physical CPU number is equal to Linux's logical CPU number and if this
is not true, we will power off the wrong CPU.
This patch uses cpu_logical_map to translate the logical CPU number
into a physical one in scu_power_mode.
Reported-by: Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Signed-off-by: Will Deacon <email@example.com>
Signed-off-by: Russell King <firstname.lastname@example.org>
(cherry picked from commit 0bd82adee38046fcf180a60ca56c181702287646)