arm64: arch_timer: simplify accessors
authorMark Rutland <mark.rutland@arm.com>
Thu, 8 Sep 2016 12:55:35 +0000 (13:55 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 10:41:13 +0000 (11:41 +0100)
commitcd5f22d7967f613c49288256ce95b07eb910e2a9
tree95c6af2897c63e7a43f31caeefa7b3404fec9c4c
parent7aff4a2dd3db4e519c636f43aa863078e3b30d0f
arm64: arch_timer: simplify accessors

A while back we added {read,write}_sysreg accessors to handle accesses
to system registers, without the usual boilerplate asm volatile,
temporary variable, etc.

This patch makes use of these in the arm64 arch timer accessors to make
the code shorter and clearer.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/arch_timer.h