]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Force inlining of cyc2ns bits
authorPeter Zijlstra <peterz@infradead.org>
Thu, 11 Oct 2018 10:38:26 +0000 (12:38 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 14 Oct 2018 09:11:22 +0000 (11:11 +0200)
commit2eed907819dab3e5a431c92abee5a6895ab23844
tree1a08e7f0fab0e26c4d8651598bb7450c8e3faeed
parent0f79de5961e04e68e9bb04110f0142485f46a6e6
x86/tsc: Force inlining of cyc2ns bits

Looking at the asm for native_sched_clock() I noticed we don't inline
enough. Mostly caused by sharing code with cyc2ns_read_begin(), which
we didn't used to do. So mark all that __force_inline to make it DTRT.

Fixes: 4a504773c86b ("x86/tsc: Remodel cyc2ns to use seqcount_latch()")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Cc: eric.dumazet@gmail.com
Cc: bp@alien8.de
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20181011104019.695196158@infradead.org
arch/x86/kernel/tsc.c