]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Remove ->save|restore_state() callbacks
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 Mar 2016 09:21:27 +0000 (11:21 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Apr 2016 00:29:17 +0000 (02:29 +0200)
commit9ee0e709637576cf25cf36878d98cc20cb406443
treeb79806baf6968ec01b59dc0553a79912ee7dea5b
parent3872862b8505aae0b899769e0a5ed00a108b4cd0
PM / Domains: Remove ->save|restore_state() callbacks

As a part of the ongoing consolidation of genpd, it's become questionable
whether clients actually needs to be able to assign their own set of
->save|restore_state() callbacks. Currently all users copes fine with the
default callbacks, so let's remove the configuration option and stick to
the default ones.

This enables further clarifications of the related code and let's also
rename pm_genpd_default_save|restore_state() into
__genpd_runtime_suspend|resume() to apply the rule of static functionnames
in genpd.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h