]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7347/1: SCU: use cpu_logical_map for per-CPU low power mode
authorWill Deacon <will.deacon@arm.com>
Fri, 24 Feb 2012 11:20:16 +0000 (12:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 28 Apr 2012 16:31:37 +0000 (17:31 +0100)
commit8840fb1f4e63a12bfc28fb422a0ebb958beff5ed
tree9505fb85fa35a47a63c62df735e1f12a81e2019e
parent09c21b3a891fa3bb2012b62f1b7b041ed141ac80
ARM: 7347/1: SCU: use cpu_logical_map for per-CPU low power mode

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 <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_scu.c