]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8130/1: cpuidle/cpuidle-big_little: fix reading cpu id part number
authorJuri Lelli <juri.lelli@arm.com>
Fri, 15 Aug 2014 14:53:14 +0000 (15:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 27 Aug 2014 14:40:45 +0000 (15:40 +0100)
commit66ad96ec04d2ffa3c50405d84220adbed1c6b0cd
tree9ce0c82dc16f8f20caecb76956b234377de52a6a
parent81b81143570f8c202e5cc17d354038d9785f20ec
ARM: 8130/1: cpuidle/cpuidle-big_little: fix reading cpu id part number

Commit 6ac8551ba38a ("ARM: make it easier to check the CPU part number
correctly") changed ARM_CPU_PART_X masks, and the way they are returned and
checked against. Usage of read_cpuid_part_number() is now deprecated, and
calling places updated accordingly. This actually broke cpuidle-big_little
initialization, as bl_idle_driver_init() performs a check using an hardcoded
mask on cpu_id.

Create an interface to perform the check (that is now even easier to read).
Define also a proper mask (ARM_CPU_PART_MASK) that makes this kind of checks
cleaner and helps preventing bugs in the future. Update usage accordingly.

Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cputype.h
arch/arm/include/asm/smp_plat.h
drivers/cpuidle/cpuidle-big_little.c