Signed-off-by: Jens Axboe <axboe@kernel.dk>
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
static inline int arch_init(char *envp[])
{
#endif
#define ARCH_HAVE_INIT
#endif
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
#if 0
static inline int arch_init(char *envp[])
{
#if 0
atb_clocktest();
#endif
return 0;
atb_clocktest();
#endif
return 0;
#undef ARCH_CPU_CLOCK_WRAPS
#define ARCH_HAVE_INIT
#undef ARCH_CPU_CLOCK_WRAPS
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
static inline int arch_init(char *envp[])
{
-extern int tsc_reliable;
+extern bool tsc_reliable;
extern int arch_random;
static inline void arch_init_intel(unsigned int level)
extern int arch_random;
static inline void arch_init_intel(unsigned int level)
#ifndef ARCH_H
#define ARCH_H
#ifndef ARCH_H
#define ARCH_H
+#include "../lib/types.h"
+
enum {
arch_x86_64 = 1,
arch_x86,
enum {
arch_x86_64 = 1,
arch_x86,
static unsigned int cycles_wrap;
#endif
#endif
static unsigned int cycles_wrap;
#endif
#endif
+bool tsc_reliable = false;
struct tv_valid {
int warned;
struct tv_valid {
int warned;
fio_clock_source_inited = fio_clock_source;
if (calibrate_cpu_clock())
fio_clock_source_inited = fio_clock_source;
if (calibrate_cpu_clock())
/*
* If the arch sets tsc_reliable != 0, then it must be good enough
/*
* If the arch sets tsc_reliable != 0, then it must be good enough
#include "../arch/arch.h"
unsigned long arch_flags = 0;
#include "../arch/arch.h"
unsigned long arch_flags = 0;