opal/sys: Correct OPAL_HAVE_SYS_TIMER_GET_CYCLES value
... in the case of `OPAL_GCC_INLINE_ASSEMBLY == 0` In this case, `OPAL_HAVE_SYS_TIMER_GET_CYCLES` should be 0 because the `opal_sys_timer_get_cycles` function is not defined. The history: 1. Before 8d4175ad89, `OPAL_HAVE_SYS_TIMER_GET_CYCLES` was 0. 2. In 8d4175ad89, adf92d6237, adf92d6237, and c62ce1593a, `OPAL_HAVE_SYS_TIMER_GET_CYCLES` was changed to 1 by introducing `opal/asm/base/*.asm`. 3. In ebce88b7ad, `opal/asm/base/*.asm` were removed. Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
Этот коммит содержится в:
родитель
98fdeeeb41
Коммит
f2c108bd8e
@ -16,8 +16,6 @@
|
||||
#ifndef OPAL_SYS_ARCH_TIMER_H
|
||||
#define OPAL_SYS_ARCH_TIMER_H 1
|
||||
|
||||
#include <sys/times.h>
|
||||
|
||||
typedef uint64_t opal_timer_t;
|
||||
|
||||
static inline opal_timer_t
|
||||
|
@ -49,9 +49,7 @@ opal_sys_timer_get_cycles(void)
|
||||
|
||||
#else
|
||||
|
||||
opal_timer_t opal_sys_timer_get_cycles(void);
|
||||
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
|
||||
|
||||
#endif /* OPAL_GCC_INLINE_ASSEMBLY */
|
||||
|
||||
|
@ -43,9 +43,7 @@ opal_sys_timer_get_cycles(void)
|
||||
|
||||
#else
|
||||
|
||||
opal_timer_t opal_sys_timer_get_cycles(void);
|
||||
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
|
||||
|
||||
#endif /* OPAL_GCC_INLINE_ASSEMBLY */
|
||||
|
||||
|
@ -65,9 +65,7 @@ static inline bool opal_sys_timer_is_monotonic (void)
|
||||
|
||||
#else
|
||||
|
||||
opal_timer_t opal_sys_timer_get_cycles(void);
|
||||
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 0
|
||||
|
||||
#endif /* OPAL_GCC_INLINE_ASSEMBLY */
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user