1
0
Fork 0
alistair23-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 ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
Makefile ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
common.h ARM: shmobile: Remove unused shmobile_smp_init_fallback_ops() 2018-06-18 12:00:22 +02:00
emev2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
headsmp-apmu.S ARM: shmobile: rcar-gen2: Stop compiling headsmp-apmu on !SMP 2018-06-27 17:08:52 +02:00
headsmp-scu.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
headsmp.S ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
platsmp-apmu.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
platsmp-scu.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
platsmp.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
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 ARM: shmobile: r8a7779: Remove explicit SYSC config and init 2018-06-18 12:00:28 +02:00
rcar-gen2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r7s9210.c ARM: shmobile: Add basic RZ/A2 SoC support 2018-08-27 15:06:42 +02:00
setup-r7s72100.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a73a4.c ARM: shmobile: Always enable ARCH_TIMER on SoCs with A7 and/or A15 2018-07-20 13:44:10 +02:00
setup-r8a7740.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7778.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
setup-r8a7779.c ARM: shmobile: r8a7779: Remove unused includes 2018-08-27 15:02:54 +02:00
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 ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
sh73a0.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
smp-emev2.c ARM: shmobile: convert to SPDX identifier 2018-06-18 12:00:29 +02:00
smp-r8a7779.c ARM: shmobile: r8a7779: hide unused r8a7779_platform_cpu_kill 2018-07-20 13:44:09 +02:00
smp-sh73a0.c ARM: shmobile: sh73a0: Remove obsolete inclusion of <asm/smp_twd.h> 2018-11-16 07:27:19 -08:00
suspend.c ARM: shmobile: convert to SPDX identifiers 2018-09-11 15:41:30 +02:00
timer.c ARM: SoC platform updates for 4.20 2018-10-29 15:37:33 -07:00