macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall
PATCH 1/1 macintosh/via-pmu68k: Initialize PMU driver with setup_arch and arch_initcall
The PMU watchdog will power down the system if the kernel is slow to start up, e.g. due to unpacking a large initrd. The powerpc version of this driver (via-pmu.c) has a solution for the same problem. It uses this call sequence:
setup_arch
find_via_pmu
init_pmu
...arch_initcall
via_pmu_start
Bring via-pmu68k.c into line with via-pmu.c to fix this issue.
--- arch/m68k/mac/config.c | 4 ++ drivers/macintosh/via-pmu68k.c | 89 +++++++++++++++++++++++++++++------------- 2 files changed, 65 insertions(+), 28 deletions(-)
arch/m68k/mac/config.c +4 -0
@@ -26,6 +26,7 @@#include <linux/platform_device.h> #include <linux/adb.h> #include <linux/cuda.h> +#include <linux/pmu.h> #include <linux/rtc.h> #include <asm/setup.h>
@@ -906,6 +907,9 @@ static void __init mac_identify(void)#ifdef CONFIG_ADB_CUDA find_via_cuda ();#endif +#ifdef CONFIG_ADB_PMU68K +find_via_pmu (); +#endif }static void __init mac_report_hardware (void )
drivers/macintosh/via-pmu68k.c +61 -28
118 lines not on this page · raw message
Signature · 1 line
2.13.6
Quoted 12 lines · Finn Thain
The PMU watchdog will power down the system if the kernel is slow to start up, e.g. due to unpacking a large initrd. The powerpc version of this driver (
via-pmu.c) has a solution for the same problem. It uses this call sequence:
setup_arch
find_via_pmu
init_pmu
...arch_initcall
via_pmu_start
Quoted 5 lines
Bring
via-pmu68k.cinto line withvia-pmu.cto fix this issue.Cc Geert Uytterhoeven <[email protected]>Tested-by Stan Johnson <[email protected]>Signed-off-by Finn Thain <[email protected]>
Thanks, applied and queue for v4.17.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds