• Thomas Gleixner's avatar
    x86/vdso: Move cycle_last handling into the caller · 3e89bf35
    Thomas Gleixner authored
    Dereferencing gtod->cycle_last all over the place and foing the cycles <
    last comparison in the vclock read functions generates horrible code. Doing
    it at the call site is much better and gains a few cycles both for TSC and
    pvclock.
    
    Caveat: This adds the comparison to the hyperv vclock as well, but I have
    no way to test that.
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Acked-by: default avatarAndy Lutomirski <luto@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Matt Rickard <matt@softrans.com.au>
    Cc: Stephen Boyd <sboyd@kernel.org>
    Cc: John Stultz <john.stultz@linaro.org>
    Cc: Florian Weimer <fweimer@redhat.com>
    Cc: "K. Y. Srinivasan" <kys@microsoft.com>
    Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
    Cc: devel@linuxdriverproject.org
    Cc: virtualization@lists.linux-foundation.org
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Juergen Gross <jgross@suse.com>
    Link: https://lkml.kernel.org/r/20180917130707.741440803@linutronix.de
    3e89bf35
vclock_gettime.c 5.86 KB