[PATCH] [2/3] Use the fancy DECLARE_EAX_EDX macros for rdtscp too

From: Andi Kleen
Date: Tue Oct 07 2008 - 07:43:38 EST



rdtscp was the only function to not use them.

Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

Index: linux-2.6.27-rc4-misc/include/asm-x86/msr.h
===================================================================
--- linux-2.6.27-rc4-misc.orig/include/asm-x86/msr.h
+++ linux-2.6.27-rc4-misc/include/asm-x86/msr.h
@@ -34,10 +34,10 @@

static inline unsigned long long native_read_tscp(unsigned int *aux)
{
- unsigned long low, high;
- asm volatile(".byte 0x0f,0x01,0xf9"
- : "=a" (low), "=d" (high), "=c" (*aux));
- return low | ((u64)high << 32);
+ DECLARE_ARGS(val, low, high);
+ asm volatile(".byte 0x0f,0x01,0xf9" :
+ EAX_EDX_RET(val, low, high), "=c" (*aux));
+ return EAX_EDX_VAL(val, low, high);
}

static inline unsigned long long native_read_msr(unsigned int msr)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/