lkml.org 
[lkml]   [2008]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [2/3] Use the fancy DECLARE_EAX_EDX macros for rdtscp too
Date

rdtscp was the only function to not use them.

Signed-off-by: Andi Kleen <ak@linux.intel.com>

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)

\
 
 \ /
  Last update: 2008-10-07 13:45    [W:0.087 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site