ARM: make it easier to check the CPU part number correctly
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 24 Jun 2014 18:43:15 +0000 (19:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Jul 2014 11:29:02 +0000 (12:29 +0100)
commitaf040ffc9ba1e079ee4c0748aff64fa3d4716fa5
tree03d58af8c3d16a777ee93e35d9f7aef15293a163
parentee2593ef5680a8646c6465ce998fea30b5af9b2b
ARM: make it easier to check the CPU part number correctly

Ensure that platform maintainers check the CPU part number in the right
manner: the CPU part number is meaningless without also checking the
CPU implement(e|o)r (choose your preferred spelling!)  Provide an
interface which returns both the implementer and part number together,
and update the definitions to include the implementer.

Mark the old function as being deprecated... indeed, using the old
function with the definitions will now always evaluate as false, so
people must update their un-merged code to the new function.  While
this could be avoided by adding new definitions, we'd also have to
create new names for them which would be awkward.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cputype.h
arch/arm/include/asm/smp_scu.h
arch/arm/kernel/perf_event_cpu.c
arch/arm/kvm/guest.c
arch/arm/mach-exynos/mcpm-exynos.c
arch/arm/mach-exynos/platsmp.c
arch/arm/mach-exynos/pm.c
arch/arm/mach-vexpress/tc2_pm.c
arch/arm/mm/cache-l2x0.c
drivers/clocksource/arm_global_timer.c