]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: processor/idle: Annotate more functions to live in cpuidle section
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Tue, 7 Jun 2022 22:24:58 +0000 (19:24 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:06 +0000 (14:23 +0200)
commitdd49cec6a4c11474a076ed1db6977ba1b38899a2
tree2333194b1ec94bee791b27bc09f1e47d156ce149
parentc3fb0cd997770458444006b5a158cf054bf52a9f
ACPI: processor/idle: Annotate more functions to live in cpuidle section

[ Upstream commit 228c3b4ecfbaa2d1dd4baa65e8b4df201f0011bb ]

Commit 9db7f32b60b9 ("nmi_backtrace: generate one-line reports for idle cpus")
introduced a new text section called cpuidle; with that, we have a mechanism
to add idling functions in such section and skip them from nmi_backtrace
output, since they're useless and potentially flooding for such report.

Happens that inlining might cause some real idle functions to end-up
outside of such section; this is currently the case of ACPI processor_idle
driver; the functions acpi_idle_enter_* do inline acpi_idle_do_entry(),
hence they stay out of the cpuidle section.
Fix that by marking such functions to also live in the cpuidle section.

Fixes: 9db7f32b60b9 ("nmi_backtrace: generate one-line reports for idle cpus")
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/processor_idle.c