Advertisement
jintack

Untitled

Nov 2nd, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h
  2. index 25d0914..76e49a6 100644
  3. --- a/include/clocksource/arm_arch_timer.h
  4. +++ b/include/clocksource/arm_arch_timer.h
  5. @@ -23,8 +23,14 @@
  6.  #define ARCH_TIMER_CTRL_IT_MASK                (1 << 1)
  7.  #define ARCH_TIMER_CTRL_IT_STAT                (1 << 2)
  8.  
  9. +#ifndef CONFIG_PV_VHE
  10.  #define CNTHCTL_EL1PCTEN               (1 << 0)
  11.  #define CNTHCTL_EL1PCEN                        (1 << 1)
  12. +#else
  13. +#define CNTHCTL_EL1PCTEN               (1 << 10)
  14. +#define CNTHCTL_EL1PCEN                        (1 << 11)
  15. +#endif
  16. +
  17.  #define CNTHCTL_EVNTEN                 (1 << 2)
  18.  #define CNTHCTL_EVNTDIR                        (1 << 3)
  19.  #define CNTHCTL_EVNTI                  (0xF << 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement