lkml.org 
[lkml]   [2014]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] x86: Inline the CLOCK_MONOTONIC vdso code
    Date
    This saves a nanosecond or so on my box.

    Signed-off-by: Andy Lutomirski <luto@amacapital.net>
    ---
    arch/x86/vdso/vclock_gettime.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/vdso/vclock_gettime.c b/arch/x86/vdso/vclock_gettime.c
    index 260a422..9234c83 100644
    --- a/arch/x86/vdso/vclock_gettime.c
    +++ b/arch/x86/vdso/vclock_gettime.c
    @@ -263,7 +263,7 @@ notrace static int __always_inline do_realtime(struct timespec *ts)
    return mode;
    }

    -notrace static int do_monotonic(struct timespec *ts)
    +notrace static int __always_inline do_monotonic(struct timespec *ts)
    {
    unsigned long seq;
    u64 ns;
    --
    1.8.5.3


    \
     
     \ /
      Last update: 2014-02-27 02:41    [W:4.420 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site