Skip to content

Commit 2f71078

Browse files
Zhen Leidlezcano
authored andcommitted
clocksource/drivers/sp804: Remove a mismatched comment
writel(0, base + TIMER_CTRL); ... ... writel(xxx | TIMER_CTRL_PERIODIC, base + TIMER_CTRL); The timer is just temporarily disabled, and it will be set to periodic mode later. The description of the field TimerMode of the register TimerXControl as shown below: 0 = Timer module is in free-running mode (default) 1 = Timer module is in periodic mode. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200918132237.3552-5-thunder.leizhen@huawei.com
1 parent 975434f commit 2f71078

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/clocksource/timer-sp804.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ int __init sp804_clocksource_and_sched_clock_init(void __iomem *base,
7676
if (rate < 0)
7777
return -EINVAL;
7878

79-
/* setup timer 0 as free-running clocksource */
8079
writel(0, base + TIMER_CTRL);
8180
writel(0xffffffff, base + TIMER_LOAD);
8281
writel(0xffffffff, base + TIMER_VALUE);

0 commit comments

Comments
 (0)