summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-06-05 13:18:02 -0600
committerJens Axboe <axboe@kernel.dk>2018-06-05 13:21:48 -0600
commitce8926092dcb3022bf658bccc3a247530c3ea500 (patch)
tree724dcec17e98ae68b418460bdfb2e83c605a53eb /arch
parent46960d0d3a4b36f7fb2ee1f356563aa367a27082 (diff)
downloadfio-ce8926092dcb3022bf658bccc3a247530c3ea500.tar.gz
fio-ce8926092dcb3022bf658bccc3a247530c3ea500.tar.bz2
x86: don't need 'level' passed to amd/intel init functions
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arch-x86-common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
index c51c04c2..5140f238 100644
--- a/arch/arch-x86-common.h
+++ b/arch/arch-x86-common.h
@@ -17,7 +17,7 @@ static inline void cpuid(unsigned int op,
extern bool tsc_reliable;
extern int arch_random;
-static inline void arch_init_intel(unsigned int level)
+static inline void arch_init_intel(void)
{
unsigned int eax, ebx, ecx = 0, edx;
@@ -44,7 +44,7 @@ static inline void arch_init_intel(unsigned int level)
arch_random = (ecx & (1U << 30)) != 0;
}
-static inline void arch_init_amd(unsigned int level)
+static inline void arch_init_amd(void)
{
unsigned int eax, ebx, ecx, edx;
@@ -69,9 +69,9 @@ static inline void arch_init(char *envp[])
str[12] = '\0';
if (!strcmp(str, "GenuineIntel"))
- arch_init_intel(level);
+ arch_init_intel();
else if (!strcmp(str, "AuthenticAMD"))
- arch_init_amd(level);
+ arch_init_amd();
}
#endif