aboutsummaryrefslogtreecommitdiffstats
path: root/include/clocksource/hyperv_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clocksource/hyperv_timer.h')
-rw-r--r--include/clocksource/hyperv_timer.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clocksource/hyperv_timer.h b/include/clocksource/hyperv_timer.h
index a821deb8ecb2..422f5e5237be 100644
--- a/include/clocksource/hyperv_timer.h
+++ b/include/clocksource/hyperv_timer.h
@@ -28,12 +28,10 @@ extern void hv_stimer_cleanup(unsigned int cpu);
28extern void hv_stimer_global_cleanup(void); 28extern void hv_stimer_global_cleanup(void);
29extern void hv_stimer0_isr(void); 29extern void hv_stimer0_isr(void);
30 30
31#if IS_ENABLED(CONFIG_HYPERV) 31#ifdef CONFIG_HYPERV_TIMER
32extern struct clocksource *hyperv_cs; 32extern struct clocksource *hyperv_cs;
33extern void hv_init_clocksource(void); 33extern void hv_init_clocksource(void);
34#endif /* CONFIG_HYPERV */
35 34
36#ifdef CONFIG_HYPERV_TSCPAGE
37extern struct ms_hyperv_tsc_page *hv_get_tsc_page(void); 35extern struct ms_hyperv_tsc_page *hv_get_tsc_page(void);
38 36
39static inline notrace u64 37static inline notrace u64
@@ -91,7 +89,7 @@ hv_read_tsc_page(const struct ms_hyperv_tsc_page *tsc_pg)
91 return hv_read_tsc_page_tsc(tsc_pg, &cur_tsc); 89 return hv_read_tsc_page_tsc(tsc_pg, &cur_tsc);
92} 90}
93 91
94#else /* CONFIG_HYPERV_TSC_PAGE */ 92#else /* CONFIG_HYPERV_TIMER */
95static inline struct ms_hyperv_tsc_page *hv_get_tsc_page(void) 93static inline struct ms_hyperv_tsc_page *hv_get_tsc_page(void)
96{ 94{
97 return NULL; 95 return NULL;
@@ -102,6 +100,6 @@ static inline u64 hv_read_tsc_page_tsc(const struct ms_hyperv_tsc_page *tsc_pg,
102{ 100{
103 return U64_MAX; 101 return U64_MAX;
104} 102}
105#endif /* CONFIG_HYPERV_TSCPAGE */ 103#endif /* CONFIG_HYPERV_TIMER */
106 104
107#endif 105#endif