ARM: shmobile: timer: Drop support for Cortex A8
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 14 Apr 2016 08:33:16 +0000 (10:33 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 19 Apr 2016 22:55:09 +0000 (08:55 +1000)
commita4b8c18c40704c28be62af4606cc6758c9ff3dba
tree0856029a18d4db84db5a280e3dc1983e74169285
parentc531fb27e9699eaee478ee5686a3cca5dee73602
ARM: shmobile: timer: Drop support for Cortex A8

Commit edf4100906044225 ("ARM: shmobile: sh7372 dtsi: Remove Legacy
file") removed the DTS for the last shmobile SoC with a Cortex A8 CPU
core (sh7372 aka SH-Mobile AP4), hence drop support for it in the
loops-per-jiffy preset code.

As "div" is always 1 for supported contemporary ARM processors, we can
simplify the code:
  - Absorb shmobile_setup_delay_hz(), which was always called with
    mult = div = 1,
  - Return earlier if the Cortex A7/A15 arch timer exists and support is
    enabled.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/timer.c