summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-06-22 14:12:29 -0600
committerJens Axboe <axboe@kernel.dk>2017-06-22 14:12:29 -0600
commit24575392bff8bdb9ec7709a78b4fbd48367fc1f5 (patch)
treee8b97bf51f07454d3be6a122a11eddfa241895fa /arch
parent97211af31edb8bcb2d85fa6f8873ded829c2e368 (diff)
downloadfio-24575392bff8bdb9ec7709a78b4fbd48367fc1f5.tar.gz
fio-24575392bff8bdb9ec7709a78b4fbd48367fc1f5.tar.bz2
arch: tsc_reliable can be a bool
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arch-ia64.h4
-rw-r--r--arch/arch-ppc.h4
-rw-r--r--arch/arch-s390.h4
-rw-r--r--arch/arch-x86-common.h2
-rw-r--r--arch/arch.h2
5 files changed, 9 insertions, 7 deletions
diff --git a/arch/arch-ia64.h b/arch/arch-ia64.h
index 53c049fd..ece3f7e2 100644
--- a/arch/arch-ia64.h
+++ b/arch/arch-ia64.h
@@ -28,10 +28,10 @@ static inline unsigned long long get_cpu_clock(void)
}
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
- tsc_reliable = 1;
+ tsc_reliable = true;
return 0;
}
diff --git a/arch/arch-ppc.h b/arch/arch-ppc.h
index 4a8aa97c..ba452b15 100644
--- a/arch/arch-ppc.h
+++ b/arch/arch-ppc.h
@@ -117,12 +117,12 @@ static void atb_clocktest(void)
#endif
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
#if 0
- tsc_reliable = 1;
+ tsc_reliable = true;
atb_clocktest();
#endif
return 0;
diff --git a/arch/arch-s390.h b/arch/arch-s390.h
index 2e84bf8a..6bf033b0 100644
--- a/arch/arch-s390.h
+++ b/arch/arch-s390.h
@@ -28,10 +28,10 @@ static inline unsigned long long get_cpu_clock(void)
#undef ARCH_CPU_CLOCK_WRAPS
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
static inline int arch_init(char *envp[])
{
- tsc_reliable = 1;
+ tsc_reliable = true;
return 0;
}
diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
index cbf66b8d..c51c04c2 100644
--- a/arch/arch-x86-common.h
+++ b/arch/arch-x86-common.h
@@ -14,7 +14,7 @@ static inline void cpuid(unsigned int op,
#define ARCH_HAVE_INIT
-extern int tsc_reliable;
+extern bool tsc_reliable;
extern int arch_random;
static inline void arch_init_intel(unsigned int level)
diff --git a/arch/arch.h b/arch/arch.h
index 00d247c4..4fb9b518 100644
--- a/arch/arch.h
+++ b/arch/arch.h
@@ -1,6 +1,8 @@
#ifndef ARCH_H
#define ARCH_H
+#include "../lib/types.h"
+
enum {
arch_x86_64 = 1,
arch_x86,