Files
kernel_xiaomi_raphael/include/linux
James Morse b6ac72d9ea drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
commit 83b44fe343b5abfcb1b2261289bd0cfcfcfd60a8 upstream.

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: 2264d9c74d ("x86/intel_rdt: Build structures for each resource based on cache topology")
Cc: <stable@vger.kernel.org>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20190624173656.202407-1-james.morse@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-21 09:04:16 +02:00
..
2019-04-17 08:37:48 +02:00
2019-04-20 09:15:10 +02:00
2018-04-24 09:36:39 +02:00
2018-02-22 15:42:23 +01:00
2017-08-30 14:40:40 +02:00
2018-08-03 07:50:38 +02:00
2019-03-23 14:35:28 +01:00
2017-08-24 13:23:03 -07:00
2018-02-22 15:42:23 +01:00
2018-06-21 04:02:49 +09:00
2018-02-22 15:42:24 +01:00
2019-05-16 19:42:22 +02:00
2017-08-28 20:51:22 +02:00
2017-09-07 11:53:11 +02:00
2019-05-04 09:15:17 +02:00
2018-02-22 15:42:23 +01:00
2017-09-25 08:56:05 -06:00
2019-06-11 12:21:48 +02:00
2019-04-17 08:37:44 +02:00
2018-11-13 11:15:11 -08:00
2019-06-17 19:52:43 +02:00
2017-08-31 18:50:14 +02:00