linux/arch/arm/mach-shmobile
Oleksandr Tyshchenko 51a0daf64d ARM: mach-shmobile: Don't init CNTVOFF/counter if PSCI is available
If PSCI is available then most likely we are running on PSCI-enabled
U-Boot which, we assume, has already taken care of resetting CNTVOFF
and updating counter module before switching to non-secure mode
and we don't need to.

As the psci_smp_available() helper always returns false if CONFIG_SMP
is disabled, it can't be used safely as an indicator of PSCI usage.
For that reason, we check for the mandatory PSCI operation to be
available.

Please note, an extra check to prevent secure_cntvoff_init() from
being called for secondary CPUs in headsmp-apmu.S is not needed,
as SMP code for APMU based system is not executed if PSCI is in use.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2019-05-31 11:38:01 +02:00
..
Kconfig
Makefile
common.h
emev2.h
headsmp-apmu.S
headsmp-scu.S
headsmp.S
platsmp-apmu.c
platsmp-scu.c
platsmp.c
pm-rcar-gen2.c ARM: shmobile: fix a leaked reference by adding missing of_node_put 2019-03-18 10:32:36 +01:00
r8a7779.h
rcar-gen2.h
regulator-quirk-rcar-gen2.c ARM: shmobile: porter: enable R-Car Gen2 regulator quirk 2019-03-18 10:32:36 +01:00
setup-emev2.c
setup-r7s9210.c
setup-r7s72100.c
setup-r8a73a4.c
setup-r8a7740.c
setup-r8a7778.c
setup-r8a7779.c
setup-rcar-gen2.c ARM: mach-shmobile: Don't init CNTVOFF/counter if PSCI is available 2019-05-31 11:38:01 +02:00
setup-sh73a0.c
sh73a0.h
smp-emev2.c
smp-r8a7779.c
smp-sh73a0.c
suspend.c
timer.c