cleanup qemu/util/qemu-timer-common.c

This commit is contained in:
Nguyen Anh Quynh 2017-01-21 14:53:33 +08:00
parent 647c97ddc3
commit 45717c61ba
2 changed files with 0 additions and 19 deletions

View File

@ -181,8 +181,6 @@ static inline int64_t get_clock(void)
#else
extern int use_rt_clock;
static inline int64_t get_clock(void)
{
return get_clock_realtime();

View File

@ -41,21 +41,4 @@ static void __attribute__((constructor)) init_get_clock(void)
}
clock_freq = freq.QuadPart;
}
#else
int use_rt_clock;
static void __attribute__((constructor)) init_get_clock(void)
{
use_rt_clock = 0;
#ifdef CLOCK_MONOTONIC
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
use_rt_clock = 1;
}
}
#endif
}
#endif