clocksource/drivers/arm_arch_timer: validate arch_timer_rate
authorIonela Voinescu <ionela.voinescu@arm.com>
Thu, 5 Mar 2020 09:06:27 +0000 (09:06 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 6 Mar 2020 16:02:51 +0000 (16:02 +0000)
commitc265861af2af0f667e88b1b70acc234f8c61e0ae
treef36f6f925eba70829a5d62aac147839d7360e75e
parentcd0ed03a8903a0b0c6fc36e32d133d1ddfe70cd6
clocksource/drivers/arm_arch_timer: validate arch_timer_rate

Using an arch timer with a frequency of less than 1MHz can potentially
result in incorrect functionality in systems that assume a reasonable
rate of the arch timer of 1 to 50MHz, described as typical in the
architecture specification.

Therefore, warn if the arch timer rate is below 1MHz, which is
considered atypical and worth emphasizing.

Suggested-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/clocksource/arm_arch_timer.c