lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[patch] x86: convert rdtscll() to use __native_read_tsc
    From
    Is there any reason why x86 rdtscll have to use the out of line
    function instead of inline __native_read_tsc()? native_read_tsc and
    __native_read_tsc is essentially the same functions.

    Patch to let x86 rdtscll() to use the inline version of read_tsc.

    Signed-off-by: Ken Chen <kenchen@google.com>


    diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h
    index c2a812e..42f639b 100644
    --- a/arch/x86/include/asm/msr.h
    +++ b/arch/x86/include/asm/msr.h
    @@ -181,10 +181,10 @@ static inline int rdmsrl_amd_safe
    }

    #define rdtscl(low) \
    - ((low) = (u32)native_read_tsc())
    + ((low) = (u32)__native_read_tsc())

    #define rdtscll(val) \
    - ((val) = native_read_tsc())
    + ((val) = __native_read_tsc())

    #define rdpmc(counter, low, high) \
    do { \

    \
     
     \ /
      Last update: 2008-12-16 09:35    [W:0.020 / U:1.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site