diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-07-18 19:59:31 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-07-31 19:13:37 -0400 |
commit | 60faddf6eb3aba16068032bdcf35e18ace4bfb21 (patch) | |
tree | 2c93b3a5c71f9151f7d6940067beadd5e311e8ef /arch/arm | |
parent | d53ef114cf40a043e3cc3fa70dbcdfb268a7e4dc (diff) |
clocksource: arch_timer: Push the read/write wrappers deeper
We're going to introduce support to read and write the memory
mapped timer registers in the next patch, so push the cp15
read/write functions one level deeper. This simplifies the next
patch and makes it clearer what's going on.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Marc Zyngier <Marc.Zyngier@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/arch_timer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch_timer.h b/arch/arm/include/asm/arch_timer.h index aeb93f38e9c9..556094689724 100644 --- a/arch/arm/include/asm/arch_timer.h +++ b/arch/arm/include/asm/arch_timer.h | |||
@@ -18,7 +18,7 @@ int arch_timer_arch_init(void); | |||
18 | * the code. At least it does so with a recent GCC (4.6.3). | 18 | * the code. At least it does so with a recent GCC (4.6.3). |
19 | */ | 19 | */ |
20 | static __always_inline | 20 | static __always_inline |
21 | void arch_timer_reg_write(int access, enum arch_timer_reg reg, u32 val) | 21 | void arch_timer_reg_write_cp15(int access, enum arch_timer_reg reg, u32 val) |
22 | { | 22 | { |
23 | if (access == ARCH_TIMER_PHYS_ACCESS) { | 23 | if (access == ARCH_TIMER_PHYS_ACCESS) { |
24 | switch (reg) { | 24 | switch (reg) { |
@@ -44,7 +44,7 @@ void arch_timer_reg_write(int access, enum arch_timer_reg reg, u32 val) | |||
44 | } | 44 | } |
45 | 45 | ||
46 | static __always_inline | 46 | static __always_inline |
47 | u32 arch_timer_reg_read(int access, enum arch_timer_reg reg) | 47 | u32 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg) |
48 | { | 48 | { |
49 | u32 val = 0; | 49 | u32 val = 0; |
50 | 50 | ||