Aaro Koskinen 518bfe84ec irqchip/i8259: Fix shutdown order by moving syscore_ops registration
When using cpufreq on Loongson 2F MIPS platform, "poweroff"
command gets frequently stuck in syscore_shutdown(). The reason is
that i8259A_shutdown() gets called before cpufreq_suspend(), and if we
have pending work then irq_work_sync() in cpufreq_dbs_governor_stop()
gets stuck forever as we have all interrupts masked already.

irq-i8259 is registering syscore_ops using device_initcall(),
while cpufreq uses core_initcall(). Fix the shutdown order simply
by registering the irq syscore_ops during the early IRQ init instead
of using a separate initcall at later stage.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2019-02-14 10:42:11 +00:00
..
2019-01-20 10:24:30 +12:00
2018-12-19 09:40:13 +01:00
2019-01-19 07:17:19 +12:00
2019-01-20 09:12:50 +12:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2018-12-27 10:43:24 -08:00
2019-01-05 11:28:39 -08:00
2019-01-19 05:46:00 +12:00
2018-12-28 20:54:57 -08:00
2019-01-11 00:15:04 +01:00
2018-12-28 13:19:59 -08:00
2019-01-15 06:24:36 +12:00
2019-01-18 17:17:20 +12:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-01-15 06:24:36 +12:00
2019-01-15 06:26:28 +12:00
2019-01-19 16:06:52 -08:00
2019-01-20 09:12:50 +12:00
2019-01-19 07:26:16 +12:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-01-20 09:15:04 +12:00
2019-01-14 05:49:35 +12:00
2018-12-31 13:06:30 -08:00
2019-01-14 05:47:48 +12:00
2018-12-28 20:54:57 -08:00
2019-01-14 05:45:28 +12:00
2019-01-19 05:43:05 +12:00
2019-01-19 05:53:41 +12:00
2018-12-29 13:40:29 -08:00