]> git.baikalelectronics.ru Git - kernel.git/commit
PM / sleep: Add state field to pm_states[] entries
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 May 2014 11:40:47 +0000 (13:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 May 2014 11:40:47 +0000 (13:40 +0200)
commit7c9f09e71236f2b7fb6924195bc8938b5d9465cf
tree59ea73e4c3999bcb8519cdc1d5cfd695a3c019ea
parente320b40a15370e615ceb7a967814a4f557af9669
PM / sleep: Add state field to pm_states[] entries

To allow sleep states corresponding to the "mem", "standby" and
"freeze" lables to be different from the pm_states[] indexes of
those strings, introduce struct pm_sleep_state, consisting of
a string label and a state number, and turn pm_states[] into an
array of objects of that type.

This modification should not lead to any functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/main.c
kernel/power/power.h
kernel/power/suspend.c
kernel/power/suspend_test.c