diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-09-17 15:45:43 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-10-05 00:00:27 +0300 |
commit | 3e89bf35ebf59c12e8c1476f6681fae0ebdcb2a7 (patch) | |
tree | dac2e3ce9c6adcb4bb627e2a7331b31aa24b3411 /arch/x86/entry/vsyscall/vsyscall_gtod.c | |
parent | 4f72adc5068294268387a81a6bf91d9bb07ecc5c (diff) | |
download | linux-3e89bf35ebf59c12e8c1476f6681fae0ebdcb2a7.tar.xz |
x86/vdso: Move cycle_last handling into the caller
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: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andy 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
Diffstat (limited to 'arch/x86/entry/vsyscall/vsyscall_gtod.c')
0 files changed, 0 insertions, 0 deletions