diff options
author | Juergen Gross <[email protected]> | 2022-11-02 08:47:13 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-11-10 13:12:45 +0100 |
commit | f8bd9f25c9815161a39886fdd96d110b536a6074 (patch) | |
tree | cd6d1d0bb021b1c735852bc446b5eb2c01a20a9b /tools/perf/scripts/python/flamegraph.py | |
parent | 30f89e524becdbaa483b34902b079c9d4dfaa4a3 (diff) |
x86/mtrr: Simplify mtrr_ops initialization
The way mtrr_if is initialized with the correct mtrr_ops structure is
quite weird.
Simplify that by dropping the vendor specific init functions and the
mtrr_ops[] array. Replace those with direct assignments of the related
vendor specific ops array to mtrr_if.
Note that a direct assignment is okay even for 64-bit builds, where the
symbol isn't present, as the related code will be subject to "dead code
elimination" due to how cpu_feature_enabled() is implemented.
Signed-off-by: Juergen Gross <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions