PM / Sleep: Make enter_state() in kernel/power/suspend.c static
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 13 Feb 2012 15:29:24 +0000 (16:29 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Feb 2012 22:36:10 +0000 (23:36 +0100)
commit93e1ee43a72b11e1b50aab87046c131a836a4456
tree86897d0bec41d2040f371d2bf2951f1f35bf727d
parent55ae451918ec62e553f11b6118fec157f90c31c3
PM / Sleep: Make enter_state() in kernel/power/suspend.c static

The enter_state() function in kernel/power/suspend.c should be
static and state_store() in kernel/power/suspend.c should call
pm_suspend() instead of it, so make that happen (which also reduces
code duplication related to suspend statistics).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
kernel/power/main.c
kernel/power/power.h
kernel/power/suspend.c