diff options
author | Kan Liang <[email protected]> | 2020-07-03 05:49:17 -0700 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-07-08 11:38:53 +0200 |
commit | 020d91e5f32da4f4b929b3a6e680135fd526107c (patch) | |
tree | 51eb18cd65dae897e64b7ab9987cfe8be206b17d /drivers | |
parent | 5624986dc61b81a77fb6136bc232593483d1c254 (diff) |
perf/x86/intel/lbr: Mark the {rd,wr}lbr_{to,from} wrappers __always_inline
The {rd,wr}lbr_{to,from} wrappers are invoked in hot paths, e.g. context
switch and NMI handler. They should be always inline to achieve better
performance. However, the CONFIG_OPTIMIZE_INLINING allows the compiler
to uninline functions marked 'inline'.
Mark the {rd,wr}lbr_{to,from} wrappers as __always_inline to force
inline the wrappers.
Suggested-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions