ACPI/PPTT: Add acpi_pptt_warn_missing() to consolidate logs
authorJohn Garry <john.garry@huawei.com>
Thu, 7 Feb 2019 16:14:21 +0000 (00:14 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Feb 2019 22:16:08 +0000 (23:16 +0100)
commit6cafe700b08cfd261a279b9e5ed99f3a346fe3b0
tree92b7e05bac5867fe4e71df7bfaf835dffba8dbf1
parent98a455d91e7116ca417bc37da6aa2dd633206a6f
ACPI/PPTT: Add acpi_pptt_warn_missing() to consolidate logs

For a system using ACPI-based FW without a PPTT, we may get many warnings
about the lack of a PPTT, as shown:

root@(none)$ dmesg | grep -i pptt
[    0.010125] ACPI PPTT: No PPTT table found, cpu topology may be inaccurate
[    7.138339] ACPI PPTT: No PPTT table found, cache topology may be inaccurate
[    7.145368] ACPI PPTT: No PPTT table found, cache topology may be inaccurate

These logs are generated with pr_warn_once(), so the intention was for a
single log, but the logs overlap, so consolidate them.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pptt.c