• Fu Wei's avatar
    clocksource: arm_arch_timer: split dt-only rate handling · 5d3dfa96
    Fu Wei authored
    For historical reasons, rate detection when probing via DT is somewhat
    convoluted. We tried to package this up in arch_timer_detect_rate(), but
    with the addition of ACPI worse, and gets in the way of stringent rate
    checking when ACPI is used.
    
    This patch makes arch_timer_detect_rate() specific to DT, ripping out
    ACPI logic. In preparation for rework of the MMIO timer probing, the
    reading of the relevant CNTFRQ register is factored out to callers. The
    function is then renamed to arch_timer_of_configure_rate(), which better
    represents its new place in the world.
    
    Comments are added in the DT and ACPI probe paths to explain this.
    Signed-off-by: default avatarFu Wei <fu.wei@linaro.org>
    [Mark: reword commit message]
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    5d3dfa96
arm_arch_timer.c 35.7 KB