power: reset: use restart_notifier mechanism for msm-poweroff
authorPramod Gurav <pramod.gurav@smartplayin.com>
Thu, 25 Sep 2014 11:33:51 +0000 (17:03 +0530)
committerSebastian Reichel <sre@kernel.org>
Fri, 26 Sep 2014 17:54:33 +0000 (19:54 +0200)
commit18a702e0de9879d5c0225a09f494443f0b91a0cc
tree5b7ad26d477002d20f79caaf7314c775b833e5f2
parent371bb20d6927f204ef5a7887ecddb06b2501c0d9
power: reset: use restart_notifier mechanism for msm-poweroff

This change replaces use of arm_pm_restart with recently introduced
reset mechanism in Linux kernel called restart_notifier.

Choosing priority 128, which is default priority, as according to
documentation, this mechanism is sufficient to restart the entire system.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Josh Cartwright <joshc@codeaurora.org>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-pm@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/msm-poweroff.c