diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2019-10-16 05:56:56 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-10-29 12:01:16 +0300 |
commit | 023e9deb51c9e1aafacbd421e55beadcb8e87f53 (patch) | |
tree | 45550b8acb094a6269be26662689932c6db521ca /include/crypto/rng.h | |
parent | 9adbb9dd4c4eb45e1129fc73d8de69ca72350f81 (diff) | |
download | linux-023e9deb51c9e1aafacbd421e55beadcb8e87f53.tar.xz |
context_tracking: Check static key on context_tracking_enabled_*cpu()
guest_enter() doesn't call context_tracking_enabled() before calling
context_tracking_enabled_this_cpu(). Therefore the guest code doesn't
benefit from the static key on the fast path.
Just make sure that context_tracking_enabled_*cpu() functions check
the static key by themselves to propagate the optimization.
Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Rafael J . Wysocki <rjw@rjwysocki.net>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Link: https://lkml.kernel.org/r/20191016025700.31277-11-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/crypto/rng.h')
0 files changed, 0 insertions, 0 deletions