paravirt.h 415 B

123456789101112131415161718192021
  1. #ifndef _ASM_ARM_PARAVIRT_H
  2. #define _ASM_ARM_PARAVIRT_H
  3. #ifdef CONFIG_PARAVIRT
  4. struct static_key;
  5. extern struct static_key paravirt_steal_enabled;
  6. extern struct static_key paravirt_steal_rq_enabled;
  7. struct pv_time_ops {
  8. unsigned long long (*steal_clock)(int cpu);
  9. };
  10. extern struct pv_time_ops pv_time_ops;
  11. static inline u64 paravirt_steal_clock(int cpu)
  12. {
  13. return pv_time_ops.steal_clock(cpu);
  14. }
  15. #endif
  16. #endif