The enter_state() function in kernel/power/suspend.c should bestatic and state_store() in kernel/power/suspend.c should callpm_suspend() instead of it, so make that happen (which also reducescode duplication related to suspend statistics).