search for: alternative_io

Displaying 4 results from an estimated 4 matches for "alternative_io".

Did you mean: alternative_if
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 13/17] paravirt_ops - time updates
...++ clean-start/include/asm-x86_64/timex.h @@ -31,14 +31,29 @@ static __always_inline cycles_t get_cycl { unsigned long long ret; unsigned eax; + unsigned int (*fn)(unsigned int) = &cpuid_eax; /* Don't do an additional sync on CPUs where we know RDTSC is already synchronous. */ - alternative_io("cpuid", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, - "=a" (eax), "0" (1) : "ebx","ecx","edx","memory"); + alternative_io("call *%3", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, + "=a" (eax) , "D" (1) , "m&q...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 13/17] paravirt_ops - time updates
...++ clean-start/include/asm-x86_64/timex.h @@ -31,14 +31,29 @@ static __always_inline cycles_t get_cycl { unsigned long long ret; unsigned eax; + unsigned int (*fn)(unsigned int) = &cpuid_eax; /* Don't do an additional sync on CPUs where we know RDTSC is already synchronous. */ - alternative_io("cpuid", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, - "=a" (eax), "0" (1) : "ebx","ecx","edx","memory"); + alternative_io("call *%3", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, + "=a" (eax) , "D" (1) , "m&q...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...mex.h 2007-01-10 15:10:00.000000000 -0200 @@ -31,14 +31,29 @@ static __always_inline cycles_t get_cycl { unsigned long long ret; unsigned eax; + unsigned int (*fn)(unsigned int) = &cpuid_eax; /* Don't do an additional sync on CPUs where we know RDTSC is already synchronous. */ - alternative_io("cpuid", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, - "=a" (eax), "0" (1) : "ebx","ecx","edx","memory"); + alternative_io("call *%3", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, + "=a" (eax) , "D" (1) , "m&q...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...mex.h 2007-01-10 15:10:00.000000000 -0200 @@ -31,14 +31,29 @@ static __always_inline cycles_t get_cycl { unsigned long long ret; unsigned eax; + unsigned int (*fn)(unsigned int) = &cpuid_eax; /* Don't do an additional sync on CPUs where we know RDTSC is already synchronous. */ - alternative_io("cpuid", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, - "=a" (eax), "0" (1) : "ebx","ecx","edx","memory"); + alternative_io("call *%3", ASM_NOP2, X86_FEATURE_SYNC_RDTSC, + "=a" (eax) , "D" (1) , "m&q...