mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Hyper-V TSC page clocksource is suitable for vDSO, however, the protocol defined by the hypervisor is different from VCLOCK_PVCLOCK. Implement the required support by adding hvclock_page VVAR. Signed-off-by: Vitaly Kuznetsov <[email protected]> Cc: Stephen Hemminger <[email protected]> Cc: Haiyang Zhang <[email protected]> Cc: Dexuan Cui <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: [email protected] Cc: "K. Y. Srinivasan" <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
17 lines
449 B
C
17 lines
449 B
C
/* x86-specific clocksource additions */
|
|
|
|
#ifndef _ASM_X86_CLOCKSOURCE_H
|
|
#define _ASM_X86_CLOCKSOURCE_H
|
|
|
|
#define VCLOCK_NONE 0 /* No vDSO clock available. */
|
|
#define VCLOCK_TSC 1 /* vDSO should use vread_tsc. */
|
|
#define VCLOCK_PVCLOCK 2 /* vDSO should use vread_pvclock. */
|
|
#define VCLOCK_HVCLOCK 3 /* vDSO should use vread_hvclock. */
|
|
#define VCLOCK_MAX 3
|
|
|
|
struct arch_clocksource_data {
|
|
int vclock_mode;
|
|
};
|
|
|
|
#endif /* _ASM_X86_CLOCKSOURCE_H */
|