Loading drivers/clocksource/arm_arch_timer.c +17 −16 Original line number Diff line number Diff line Loading @@ -84,20 +84,20 @@ void arch_timer_reg_write(int access, enum arch_timer_reg reg, u32 val, struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: writel_relaxed(val, timer->base + CNTP_CTL); writel_relaxed_no_log(val, timer->base + CNTP_CTL); break; case ARCH_TIMER_REG_TVAL: writel_relaxed(val, timer->base + CNTP_TVAL); writel_relaxed_no_log(val, timer->base + CNTP_TVAL); break; } } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) { struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: writel_relaxed(val, timer->base + CNTV_CTL); writel_relaxed_no_log(val, timer->base + CNTV_CTL); break; case ARCH_TIMER_REG_TVAL: writel_relaxed(val, timer->base + CNTV_TVAL); writel_relaxed_no_log(val, timer->base + CNTV_TVAL); break; } } else { Loading @@ -115,20 +115,20 @@ u32 arch_timer_reg_read(int access, enum arch_timer_reg reg, struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: val = readl_relaxed(timer->base + CNTP_CTL); val = readl_relaxed_no_log(timer->base + CNTP_CTL); break; case ARCH_TIMER_REG_TVAL: val = readl_relaxed(timer->base + CNTP_TVAL); val = readl_relaxed_no_log(timer->base + CNTP_TVAL); break; } } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) { struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: val = readl_relaxed(timer->base + CNTV_CTL); val = readl_relaxed_no_log(timer->base + CNTV_CTL); break; case ARCH_TIMER_REG_TVAL: val = readl_relaxed(timer->base + CNTV_TVAL); val = readl_relaxed_no_log(timer->base + CNTV_TVAL); break; } } else { Loading Loading @@ -375,7 +375,8 @@ arch_timer_detect_rate(void __iomem *cntbase, struct device_node *np) /* Try to determine the frequency from the device tree or CNTFRQ */ if (of_property_read_u32(np, "clock-frequency", &arch_timer_rate)) { if (cntbase) arch_timer_rate = readl_relaxed(cntbase + CNTFRQ); arch_timer_rate = readl_relaxed_no_log(cntbase + CNTFRQ); else arch_timer_rate = arch_timer_get_cntfrq(); } Loading Loading @@ -412,9 +413,9 @@ static u64 arch_counter_get_cntpct_mem(void) u32 pct_lo, pct_hi, tmp_hi; do { pct_hi = readl_relaxed(arch_counter_base + CNTPCT_HI); pct_lo = readl_relaxed(arch_counter_base + CNTPCT_LO); tmp_hi = readl_relaxed(arch_counter_base + CNTPCT_HI); pct_hi = readl_relaxed_no_log(arch_counter_base + CNTPCT_HI); pct_lo = readl_relaxed_no_log(arch_counter_base + CNTPCT_LO); tmp_hi = readl_relaxed_no_log(arch_counter_base + CNTPCT_HI); } while (pct_hi != tmp_hi); return ((u64) pct_hi << 32) | pct_lo; Loading @@ -425,9 +426,9 @@ static u64 arch_counter_get_cntvct_mem(void) u32 vct_lo, vct_hi, tmp_hi; do { vct_hi = readl_relaxed(arch_counter_base + CNTVCT_HI); vct_lo = readl_relaxed(arch_counter_base + CNTVCT_LO); tmp_hi = readl_relaxed(arch_counter_base + CNTVCT_HI); vct_hi = readl_relaxed_no_log(arch_counter_base + CNTVCT_HI); vct_lo = readl_relaxed_no_log(arch_counter_base + CNTVCT_LO); tmp_hi = readl_relaxed_no_log(arch_counter_base + CNTVCT_HI); } while (vct_hi != tmp_hi); return ((u64) vct_hi << 32) | vct_lo; Loading Loading @@ -778,7 +779,7 @@ static void __init arch_timer_mem_init(struct device_node *np) return; } cnttidr = readl_relaxed(cntctlbase + CNTTIDR); cnttidr = readl_relaxed_no_log(cntctlbase + CNTTIDR); iounmap(cntctlbase); /* Loading Loading
drivers/clocksource/arm_arch_timer.c +17 −16 Original line number Diff line number Diff line Loading @@ -84,20 +84,20 @@ void arch_timer_reg_write(int access, enum arch_timer_reg reg, u32 val, struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: writel_relaxed(val, timer->base + CNTP_CTL); writel_relaxed_no_log(val, timer->base + CNTP_CTL); break; case ARCH_TIMER_REG_TVAL: writel_relaxed(val, timer->base + CNTP_TVAL); writel_relaxed_no_log(val, timer->base + CNTP_TVAL); break; } } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) { struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: writel_relaxed(val, timer->base + CNTV_CTL); writel_relaxed_no_log(val, timer->base + CNTV_CTL); break; case ARCH_TIMER_REG_TVAL: writel_relaxed(val, timer->base + CNTV_TVAL); writel_relaxed_no_log(val, timer->base + CNTV_TVAL); break; } } else { Loading @@ -115,20 +115,20 @@ u32 arch_timer_reg_read(int access, enum arch_timer_reg reg, struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: val = readl_relaxed(timer->base + CNTP_CTL); val = readl_relaxed_no_log(timer->base + CNTP_CTL); break; case ARCH_TIMER_REG_TVAL: val = readl_relaxed(timer->base + CNTP_TVAL); val = readl_relaxed_no_log(timer->base + CNTP_TVAL); break; } } else if (access == ARCH_TIMER_MEM_VIRT_ACCESS) { struct arch_timer *timer = to_arch_timer(clk); switch (reg) { case ARCH_TIMER_REG_CTRL: val = readl_relaxed(timer->base + CNTV_CTL); val = readl_relaxed_no_log(timer->base + CNTV_CTL); break; case ARCH_TIMER_REG_TVAL: val = readl_relaxed(timer->base + CNTV_TVAL); val = readl_relaxed_no_log(timer->base + CNTV_TVAL); break; } } else { Loading Loading @@ -375,7 +375,8 @@ arch_timer_detect_rate(void __iomem *cntbase, struct device_node *np) /* Try to determine the frequency from the device tree or CNTFRQ */ if (of_property_read_u32(np, "clock-frequency", &arch_timer_rate)) { if (cntbase) arch_timer_rate = readl_relaxed(cntbase + CNTFRQ); arch_timer_rate = readl_relaxed_no_log(cntbase + CNTFRQ); else arch_timer_rate = arch_timer_get_cntfrq(); } Loading Loading @@ -412,9 +413,9 @@ static u64 arch_counter_get_cntpct_mem(void) u32 pct_lo, pct_hi, tmp_hi; do { pct_hi = readl_relaxed(arch_counter_base + CNTPCT_HI); pct_lo = readl_relaxed(arch_counter_base + CNTPCT_LO); tmp_hi = readl_relaxed(arch_counter_base + CNTPCT_HI); pct_hi = readl_relaxed_no_log(arch_counter_base + CNTPCT_HI); pct_lo = readl_relaxed_no_log(arch_counter_base + CNTPCT_LO); tmp_hi = readl_relaxed_no_log(arch_counter_base + CNTPCT_HI); } while (pct_hi != tmp_hi); return ((u64) pct_hi << 32) | pct_lo; Loading @@ -425,9 +426,9 @@ static u64 arch_counter_get_cntvct_mem(void) u32 vct_lo, vct_hi, tmp_hi; do { vct_hi = readl_relaxed(arch_counter_base + CNTVCT_HI); vct_lo = readl_relaxed(arch_counter_base + CNTVCT_LO); tmp_hi = readl_relaxed(arch_counter_base + CNTVCT_HI); vct_hi = readl_relaxed_no_log(arch_counter_base + CNTVCT_HI); vct_lo = readl_relaxed_no_log(arch_counter_base + CNTVCT_LO); tmp_hi = readl_relaxed_no_log(arch_counter_base + CNTVCT_HI); } while (vct_hi != tmp_hi); return ((u64) vct_hi << 32) | vct_lo; Loading Loading @@ -778,7 +779,7 @@ static void __init arch_timer_mem_init(struct device_node *np) return; } cnttidr = readl_relaxed(cntctlbase + CNTTIDR); cnttidr = readl_relaxed_no_log(cntctlbase + CNTTIDR); iounmap(cntctlbase); /* Loading