Skip to contentSkip to conversation

pm_prepare_console in drivers/macintosh/via-pmu.c

RFC Rafael J. Wysocki 2 participants 3 messages Feb 1, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Rafael J. Wysocki

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.

They should always be set...

Ben.

#2 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines · Rafael J. Wysocki

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.

They should always be set...

So no changes are needed. :-)

Thanks,
Rafael