Fix another typo in gtod_reduce()
[fio.git] / arch / arch-x86-common.h
index 78fd40c03d40c71f9f915bf615e1cc06dce6a97a..26a14a82375001a24cbe4b3c7466c7e580138518 100644 (file)
@@ -3,15 +3,6 @@
 
 #include <string.h>
 
-static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
-                           unsigned int *ecx, unsigned int *edx)
-{
-       asm volatile("cpuid"
-               : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx)
-               : "0" (*eax), "2" (*ecx)
-               : "memory");
-}
-
 static inline void cpuid(unsigned int op,
                         unsigned int *eax, unsigned int *ebx,
                         unsigned int *ecx, unsigned int *edx)
@@ -69,6 +60,7 @@ static inline int arch_init(char *envp[])
                         (unsigned int *) &str[8],
                         (unsigned int *) &str[4]);
 
+       str[11] = '\0';
        if (!strcmp(str, "GenuineIntel"))
                tsc_reliable = arch_init_intel(level);
        else if (!strcmp(str, "AuthenticAMD"))