arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymore
authorAndrea Merello <andrea.merello@gmail.com>
Tue, 6 Apr 2021 13:00:45 +0000 (15:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 16 Jun 2021 15:33:04 +0000 (17:33 +0200)
Now ARM global timer driver could work even if it's source clock rate
changes, so we don't need to disable that driver when cpu frequency scaling
is in use.

This cause Zynq arch to get support for timer delay and get_cycles().

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210406130045.15491-3-andrea.merello@gmail.com
arch/arm/mach-zynq/Kconfig
drivers/clocksource/Kconfig

index 43fb941dcd07366371f715f8cbaa6b02ab71b621..a56748d671c43b47600ff6ca99b3f7e73029babc 100644 (file)
@@ -6,7 +6,7 @@ config ARCH_ZYNQ
        select ARCH_SUPPORTS_BIG_ENDIAN
        select ARM_AMBA
        select ARM_GIC
-       select ARM_GLOBAL_TIMER if !CPU_FREQ
+       select ARM_GLOBAL_TIMER
        select CADENCE_TTC_TIMER
        select HAVE_ARM_SCU if SMP
        select HAVE_ARM_TWD if SMP
index 19fc5f8883e03077e5289d315ec0cad4b5140924..9fa28237715a3db09d082a3fd6405dbb5496d466 100644 (file)
@@ -360,6 +360,7 @@ config ARM_GLOBAL_TIMER
 
 config ARM_GT_INITIAL_PRESCALER_VAL
        int "ARM global timer initial prescaler value"
+       default 2 if ARCH_ZYNQ
        default 1
        depends on ARM_GLOBAL_TIMER
        help