Files
android_kernel_xiaomi_sm8450/arch/x86/include/asm
Vitaly Kuznetsov 856f60e3e8 ACPI: processor: Fix build when CONFIG_ACPI_PROCESSOR=m
commit fa26d0c778b432d3d9814ea82552e813b33eeb5c upstream.

Commit 8cdddd182bd7 ("ACPI: processor: Fix CPU0 wakeup in
acpi_idle_play_dead()") tried to fix CPU0 hotplug breakage by copying
wakeup_cpu0() + start_cpu0() logic from hlt_play_dead()//mwait_play_dead()
into acpi_idle_play_dead(). The problem is that these functions are not
exported to modules so when CONFIG_ACPI_PROCESSOR=m build fails.

The issue could've been fixed by exporting both wakeup_cpu0()/start_cpu0()
(the later from assembly) but it seems putting the whole pattern into a
new function and exporting it instead is better.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 8cdddd182bd7 ("CPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()")
Cc: <stable@vger.kernel.org> # 5.10+
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-14 08:41:58 +02:00
..
2020-06-09 09:39:13 -07:00
2020-01-23 10:41:20 -08:00
2018-12-03 10:49:13 +01:00
2020-05-07 16:06:20 +02:00
2020-08-20 11:18:36 +02:00
2020-07-27 14:29:23 -04:00
2020-09-04 15:09:29 +02:00
2020-09-16 16:52:35 +02:00
2018-08-15 13:44:10 -07:00
2019-04-16 12:26:18 +02:00
2019-04-22 11:42:59 +02:00
2020-09-16 16:52:28 +02:00
2020-09-16 16:52:35 +02:00
2021-02-07 15:37:14 +01:00
2018-03-20 10:01:57 +01:00
2020-06-02 10:59:12 -07:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2020-01-14 12:20:58 +01:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00