Hi,
diff --git a/arch/arm/mach-shmobile/setup-rcar-gen2.c b/arch/arm/mach-shmobile/setup-rcar-gen2.c
index eea60b2..bac4490 100644
--- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
+++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
@@ -32,7 +32,7 @@ static const struct of_device_id cpg_matches[] __initconst = {
ÂÂÂÂÂ { /* sentinel */ }
 };
 -static unsigned int __init get_extal_freq(void)
+static unsigned int __init __maybe_unused get_extal_freq(void)
 {
ÂÂÂÂÂ const struct of_device_id *match;
ÂÂÂÂÂ struct device_node *cpg, *extal;
@@ -60,6 +60,12 @@ static unsigned int __init get_extal_freq(void)
  void __init rcar_gen2_timer_init(void)
 {
+/*
+ * If CONFIG_PSCI is enabled then most likely we are running on PSCI-enabled
+ * U-Boot which, we assume, has already taken care of configuring ARCH timer
+ * stuff before switching to non-secure mode.
+ */
I disagree with that statement. CONFIG_ARM_PSCI may be selected in your .config for multiple reasons:
ÂÂÂÂ - CONFIG_XEN will selected it
ÂÂÂÂ - you build a .config targeting multiple platforms
Yet you may still want to boot the kernel on older U-boot. Such change would make it impossible.
If there are code that should not be called when PSCI is used, then you need to make sure the function is not called at runtime.
--
Cheers,