diff options
author | Juergen Gross <[email protected]> | 2022-11-02 08:47:11 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-11-10 13:12:45 +0100 |
commit | 30f89e524becdbaa483b34902b079c9d4dfaa4a3 (patch) | |
tree | 298cfde91b69aa719bf292b211d4a7fe6718f970 /tools/perf/scripts/python/flamegraph.py | |
parent | adfe7512e1d0b2e83215b0ec56337d2df9f1032d (diff) |
x86/cacheinfo: Switch cache_ap_init() to hotplug callback
Instead of explicitly calling cache_ap_init() in
identify_secondary_cpu() use a CPU hotplug callback instead. By
registering the callback only after having started the non-boot CPUs
and initializing cache_aps_delayed_init with "true", calling
set_cache_aps_delayed_init() at boot time can be dropped.
It should be noted that this change results in cache_ap_init() being
called a little bit later when hotplugging CPUs. By using a new
hotplug slot right at the start of the low level bringup this is not
problematic, as no operations requiring a specific caching mode are
performed that early in CPU initialization.
Suggested-by: Borislav Petkov <[email protected]>
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