Xiongfeng Wang e022eac85e cacheinfo: clear cache_leaves(cpu) in free_cache_attributes()
On ARM64, when PPTT(Processor Properties Topology Table) is not
implemented in ACPI boot, we will goto 'free_ci' with the following
print:
  Unable to detect cache hierarchy for CPU 0

But some other codes may still use 'num_leaves' to iterate through the
'info_list', such as get_cpu_cacheinfo_id(). If 'info_list' is NULL , it
would crash. So clear 'num_leaves' in free_cache_attributes().

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Link: https://lore.kernel.org/r/1626226375-58730-1-git-send-email-wangxiongfeng2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-21 17:29:40 +02:00
..
2021-07-10 09:22:44 -07:00
2021-06-30 15:51:09 -07:00
2021-07-16 12:31:44 -07:00
2021-07-21 11:53:42 +02:00
2021-06-30 15:34:19 -06:00
2021-07-10 09:22:44 -07:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-13 15:15:17 +02:00
2021-07-05 12:10:34 -07:00
2021-07-16 11:14:54 -07:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-03 11:13:22 -07:00
2021-07-09 15:35:13 +02:00
2021-07-05 14:08:24 -07:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-16 12:31:44 -07:00
2021-07-03 10:54:08 -07:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-05 12:10:34 -07:00
2021-07-07 10:50:03 -07:00
2021-07-10 09:46:20 -07:00
2021-07-10 16:19:10 -07:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-21 11:53:42 +02:00
2021-07-16 11:14:54 -07:00
2021-07-21 11:53:42 +02:00
2021-07-07 12:57:46 -07:00
2021-07-21 11:53:42 +02:00
2021-06-29 11:21:35 -07:00