diff options
author | Jithu Joseph <[email protected]> | 2022-11-17 11:59:57 -0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-11-18 21:43:18 +0100 |
commit | cb5eceee816bf05667089869d822b9cbc919465a (patch) | |
tree | 60ada247a17aa91e9b42954131f4b114f156253b /tools/perf/scripts/python/flamegraph.py | |
parent | a4c30fa4ead5e6628e5ff5a45664ba7181acf6f1 (diff) |
platform/x86/intel/ifs: Remove memory allocation from load path
IFS requires tests to be authenticated once for each CPU socket on a
system.
scan_chunks_sanity_check() was dynamically allocating memory to store
the state of whether tests have been authenticated on each socket for
every load operation.
Move the memory allocation to init path and store the pointer in
ifs_data struct.
Also rearrange the adjacent error checking in init for a more simplified
and natural flow.
Suggested-by: Borislav Petkov <[email protected]>
Signed-off-by: Jithu Joseph <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Tony Luck <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions