diff options
| author | James Morse <[email protected]> | 2019-06-24 17:36:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-07-03 19:25:41 +0000 |
| commit | 83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8 (patch) | |
| tree | 836c3ebfb9106fce27e4cdeb5f2e2bf15ec59d09 /arch/x86/platform/atom/punit_atom_debug.c | |
| parent | arch_topology: Remove error messages on out-of-memory conditions (diff) | |
| download | kernel-83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8.tar.gz kernel-83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8.zip | |
drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
The cacheinfo structures are alloced/freed by cpu online/offline
callbacks. Originally these were only used by sysfs to expose the
cache topology to user space. Without any in-kernel dependencies
CPUHP_AP_ONLINE_DYN was an appropriate choice.
resctrl has started using these structures to identify CPUs that
share a cache. It updates its 'domain' structures from cpu
online/offline callbacks. These depend on the cacheinfo structures
(resctrl_online_cpu()->domain_add_cpu()->get_cache_id()->
get_cpu_cacheinfo()).
These also run as CPUHP_AP_ONLINE_DYN.
Now that there is an in-kernel dependency, move the cacheinfo
work earlier so we know its done before resctrl's CPUHP_AP_ONLINE_DYN
work runs.
Fixes: 2264d9c74dda1 ("x86/intel_rdt: Build structures for each resource based on cache topology")
Cc: <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Reinette Chatre <[email protected]>
Signed-off-by: James Morse <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'arch/x86/platform/atom/punit_atom_debug.c')
0 files changed, 0 insertions, 0 deletions
