summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2016-10-28 09:45:28 +0100
committerSasha Levin <alexander.levin@microsoft.com>2018-02-28 22:09:41 -0500
commit12f05604ea9fe94e736d391d226d64c10030acbc (patch)
tree102363f2fbe5258d3785c9190e37004b85e43872 /fs
parentd90c9aca94812230166ed6fc86b0767304418ba3 (diff)
drivers: base: cacheinfo: fix x86 with CONFIG_OF enabled
[ Upstream commit fac51482577d5e05bbb0efa8d602a3c2111098bf ] With CONFIG_OF enabled on x86, we get the following error on boot: " Failed to find cpu0 device node Unable to detect cache hierarchy from DT for CPU 0 " and the cacheinfo fails to get populated in the corresponding sysfs entries. This is because cache_setup_of_node looks for of_node for setting up the shared cpu_map without checking that it's already populated in the architecture specific callback. In order to indicate that the shared cpu_map is already populated, this patch introduces a boolean `cpu_map_populated` in struct cpu_cacheinfo that can be used by the generic code to skip cache_shared_cpu_map_setup. This patch also sets that boolean for x86. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions