Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/arm_arch_timer: Remove any trace of the TVAL programming interface

TVAL usage is now long gone, get rid of the leftovers.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211017124225.3018098-11-maz@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Marc Zyngier and committed by
Daniel Lezcano
41f8d02a 012f1885

-9
-8
drivers/clocksource/arm_arch_timer.c
··· 48 48 #define CNTPCT_LO 0x08 49 49 #define CNTFRQ 0x10 50 50 #define CNTP_CVAL_LO 0x20 51 - #define CNTP_TVAL 0x28 52 51 #define CNTP_CTL 0x2c 53 52 #define CNTV_CVAL_LO 0x30 54 - #define CNTV_TVAL 0x38 55 53 #define CNTV_CTL 0x3c 56 54 57 55 static unsigned arch_timers_present __initdata; ··· 109 111 case ARCH_TIMER_REG_CTRL: 110 112 writel_relaxed((u32)val, timer->base + CNTP_CTL); 111 113 break; 112 - case ARCH_TIMER_REG_TVAL: 113 - writel_relaxed((u32)val, timer->base + CNTP_TVAL); 114 - break; 115 114 case ARCH_TIMER_REG_CVAL: 116 115 /* 117 116 * Not guaranteed to be atomic, so the timer ··· 124 129 switch (reg) { 125 130 case ARCH_TIMER_REG_CTRL: 126 131 writel_relaxed((u32)val, timer->base + CNTV_CTL); 127 - break; 128 - case ARCH_TIMER_REG_TVAL: 129 - writel_relaxed((u32)val, timer->base + CNTV_TVAL); 130 132 break; 131 133 case ARCH_TIMER_REG_CVAL: 132 134 /* Same restriction as above */
-1
include/clocksource/arm_arch_timer.h
··· 24 24 25 25 enum arch_timer_reg { 26 26 ARCH_TIMER_REG_CTRL, 27 - ARCH_TIMER_REG_TVAL, 28 27 ARCH_TIMER_REG_CVAL, 29 28 }; 30 29