* make sure to dist timer.h
* have the real assembly for 64 bit mode (doh!) * make sure to define type (remove debugging #if 0) This commit was SVN r7401.
Этот коммит содержится в:
родитель
10d02b2110
Коммит
a35c2e911d
@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
|
||||
noinst_HEADERS = atomic.h
|
||||
noinst_HEADERS = atomic.h timer.h
|
||||
|
||||
# Conditionally install the header files
|
||||
|
||||
|
@ -17,9 +17,7 @@
|
||||
#ifndef OMPI_SYS_ARCH_TIMER_H
|
||||
#define OMPI_SYS_ARCH_TIMER_H 1
|
||||
|
||||
#if 0
|
||||
typedef uint64_t opal_timer_t;
|
||||
#endif
|
||||
|
||||
#if OMPI_GCC_INLINE_ASSEMBLY
|
||||
|
||||
@ -31,7 +29,7 @@ opal_sys_timer_get_cycles(void)
|
||||
{
|
||||
opal_timer_t ret;
|
||||
|
||||
__asm__ __volatile__("rdtsc" : "=r"(ret));
|
||||
__asm__ __volatile__("mov %%tick, %0" : "=r"(ret));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user