pm_prepare_console in drivers/macintosh/via-pmu.c
Hi,
The drivers/macintosh/via-pmu.c driver is the only user of pm_prepare_console() and pm_restore_console() calls outside of kernel/power. If it is going to stay like that we should move the new #ifdef around the declarations of pm_prepare_console() and pm_restore_console() as well as the definition of SUSPEND_CONSOLE from kernel/power/power.h to include/linux/suspend.h, unless CONFIG_VT and CONFIG_VT_CONSOLE are always set on Macs.
Please advise.
Rafael
Quoted 8 lines · Rafael J. Wysocki
Hi,
The
drivers/macintosh/via-pmu.cdriver is the only user ofpm_prepare_console()andpm_restore_console()calls outside of kernel/power. If it is going to stay like that we should move the new #ifdef around the declarations ofpm_prepare_console()andpm_restore_console()as well as the definition ofSUSPEND_CONSOLEfromkernel/power/power.htoinclude/linux/suspend.h, unlessCONFIG_VTandCONFIG_VT_CONSOLEare always set on Macs.
They should always be set...
Ben.
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines · Rafael J. Wysocki
Hi,
The
drivers/macintosh/via-pmu.cdriver is the only user ofpm_prepare_console()andpm_restore_console()calls outside of kernel/power. If it is going to stay like that we should move the new #ifdef around the declarations ofpm_prepare_console()andpm_restore_console()as well as the definition ofSUSPEND_CONSOLEfromkernel/power/power.htoinclude/linux/suspend.h, unlessCONFIG_VTandCONFIG_VT_CONSOLEare always set on Macs.They should always be set...
So no changes are needed. :-)
Thanks,
Rafael