diff options
| author | Marc Zyngier <marc.zyngier@arm.com> | 2015-10-19 11:32:20 -0400 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-12-14 06:30:39 -0500 |
| commit | 1431af367e52b08038e78d346822966d968f1694 (patch) | |
| tree | ef38c2c78c5c883be30788d17abe2853b534050e /include/clocksource | |
| parent | f68d2b1b73cc3d8f6eb189c11ce79a472ed27c42 (diff) | |
arm64: KVM: Implement timer save/restore
Implement the timer save restore as a direct translation of
the assembly code version.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/clocksource')
| -rw-r--r-- | include/clocksource/arm_arch_timer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h index 9916d0e4eff5..25d0914481a2 100644 --- a/include/clocksource/arm_arch_timer.h +++ b/include/clocksource/arm_arch_timer.h | |||
| @@ -23,6 +23,12 @@ | |||
| 23 | #define ARCH_TIMER_CTRL_IT_MASK (1 << 1) | 23 | #define ARCH_TIMER_CTRL_IT_MASK (1 << 1) |
| 24 | #define ARCH_TIMER_CTRL_IT_STAT (1 << 2) | 24 | #define ARCH_TIMER_CTRL_IT_STAT (1 << 2) |
| 25 | 25 | ||
| 26 | #define CNTHCTL_EL1PCTEN (1 << 0) | ||
| 27 | #define CNTHCTL_EL1PCEN (1 << 1) | ||
| 28 | #define CNTHCTL_EVNTEN (1 << 2) | ||
| 29 | #define CNTHCTL_EVNTDIR (1 << 3) | ||
| 30 | #define CNTHCTL_EVNTI (0xF << 4) | ||
| 31 | |||
| 26 | enum arch_timer_reg { | 32 | enum arch_timer_reg { |
| 27 | ARCH_TIMER_REG_CTRL, | 33 | ARCH_TIMER_REG_CTRL, |
| 28 | ARCH_TIMER_REG_TVAL, | 34 | ARCH_TIMER_REG_TVAL, |
