From: Stefano Stabellini Date: Thu, 12 Nov 2015 17:46:04 +0000 (+0000) Subject: xen/arm: move ticks conversions function declarations to the header file X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2195 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca550063e38da59a3b529f31a64f0d8787b61876;p=xen.git xen/arm: move ticks conversions function declarations to the header file This is just a cleanup, not required at the moment. Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c index c8e2a12dfe..629feb4c47 100644 --- a/xen/arch/arm/vtimer.c +++ b/xen/arch/arm/vtimer.c @@ -29,9 +29,6 @@ #include #include -extern s_time_t ticks_to_ns(uint64_t ticks); -extern uint64_t ns_to_ticks(s_time_t ns); - /* * Check if regs is allowed access, user_gate is tail end of a * CNTKCTL_EL1_ bit name which gates user access diff --git a/xen/include/asm-arm/time.h b/xen/include/asm-arm/time.h index d755f36d0b..f99d6e8484 100644 --- a/xen/include/asm-arm/time.h +++ b/xen/include/asm-arm/time.h @@ -37,6 +37,9 @@ extern void __cpuinit init_timer_interrupt(void); /* Counter value at boot time */ extern uint64_t boot_count; +extern s_time_t ticks_to_ns(uint64_t ticks); +extern uint64_t ns_to_ticks(s_time_t ns); + void preinit_xen_time(void); #endif /* __ARM_TIME_H__ */