eal/armv8: force inlining of timer API
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Fri, 26 Jun 2020 20:35:02 +0000 (15:35 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 7 Jul 2020 11:21:26 +0000 (13:21 +0200)
Change the inline functions to use __rte_always_inline to be
consistent with rest of the inline functions.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/librte_eal/arm/include/rte_cycles_64.h

index e41f9db..029fdc4 100644 (file)
@@ -50,7 +50,7 @@ __rte_arm64_cntvct_precise(void)
  * This call is portable to any ARMv8 architecture, however, typically
  * cntvct_el0 runs at <= 100MHz and it may be imprecise for some tasks.
  */
-static inline uint64_t
+static __rte_always_inline uint64_t
 rte_rdtsc(void)
 {
        return __rte_arm64_cntvct();
@@ -85,22 +85,25 @@ __rte_arm64_pmccntr(void)
        return tsc;
 }
 
-static inline uint64_t
+static __rte_always_inline uint64_t
 rte_rdtsc(void)
 {
        return __rte_arm64_pmccntr();
 }
 #endif
 
-static inline uint64_t
+static __rte_always_inline uint64_t
 rte_rdtsc_precise(void)
 {
        asm volatile("isb" : : : "memory");
        return rte_rdtsc();
 }
 
-static inline uint64_t
-rte_get_tsc_cycles(void) { return rte_rdtsc(); }
+static __rte_always_inline uint64_t
+rte_get_tsc_cycles(void)
+{
+       return rte_rdtsc();
+}
 
 #ifdef __cplusplus
 }