Cleanup the AMD64 timer function.
Этот коммит содержится в:
родитель
e27759956f
Коммит
18a916fced
@ -25,19 +25,6 @@ typedef uint64_t opal_timer_t;
|
|||||||
|
|
||||||
#if OPAL_GCC_INLINE_ASSEMBLY
|
#if OPAL_GCC_INLINE_ASSEMBLY
|
||||||
|
|
||||||
#if 0
|
|
||||||
static inline opal_timer_t
|
|
||||||
opal_sys_timer_get_cycles(void)
|
|
||||||
{
|
|
||||||
opal_timer_t ret;
|
|
||||||
|
|
||||||
__asm__ __volatile__("rdtsc" : "=A"(ret));
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
static inline opal_timer_t
|
static inline opal_timer_t
|
||||||
opal_sys_timer_get_cycles(void)
|
opal_sys_timer_get_cycles(void)
|
||||||
{
|
{
|
||||||
@ -46,8 +33,6 @@ opal_sys_timer_get_cycles(void)
|
|||||||
return ((opal_timer_t)a) | (((opal_timer_t)d) << 32);
|
return ((opal_timer_t)a) | (((opal_timer_t)d) << 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
#define OPAL_HAVE_SYS_TIMER_GET_CYCLES 1
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user