[PATCH 09/11] clocksource: tegra: Maintain CPU endianness
Daniel Lezcano
daniel.lezcano at linaro.org
Mon Mar 30 13:17:11 PDT 2015
From: Dmitry Osipenko <digetx at gmail.com>
Support big-endian kernel by using endian-aware register access functions.
Signed-off-by: Dmitry Osipenko <digetx at gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano at linaro.org>
Acked-by: Thierry Reding <treding at nvidia.com>
---
drivers/clocksource/tegra20_timer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c
index d2616ef..d8a3a4e 100644
--- a/drivers/clocksource/tegra20_timer.c
+++ b/drivers/clocksource/tegra20_timer.c
@@ -57,9 +57,9 @@ static u64 persistent_ms, last_persistent_ms;
static struct delay_timer tegra_delay_timer;
#define timer_writel(value, reg) \
- __raw_writel(value, timer_reg_base + (reg))
+ writel_relaxed(value, timer_reg_base + (reg))
#define timer_readl(reg) \
- __raw_readl(timer_reg_base + (reg))
+ readl_relaxed(timer_reg_base + (reg))
static int tegra_timer_set_next_event(unsigned long cycles,
struct clock_event_device *evt)
--
1.9.1
More information about the linux-arm-kernel
mailing list