clocksource: armv8-timer: Convert explicit assembly into helpers
Move inline assembly related to querying and counter value as well as
getting and setting counter frequency register into asm/system.h as
well as converting it inot helper functions. This is done to make the
code availible to other parts of the system.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2073d93 commit 758b6304c598a574c4aba8fe7cd9b7a15719057c
@Andrey Smirnov Andrey Smirnov authored on 7 Jun 2018
Sascha Hauer committed on 11 Jun 2018
Showing 2 changed files
View
arch/arm/include/asm/system.h
View
drivers/clocksource/armv8-timer.c