#include #include #include #include "notifier-error-inject.h" static int priority; module_param(priority, int, 0); MODULE_PARM_DESC(priority, "specify PM notifier priority"); static struct notifier_err_inject pm_notifier_err_inject = { .actions = { { NOTIFIER_ERR_INJECT_ACTION(PM_HIBERNATION_PREPARE) }, { NOTIFIER_ERR_INJECT_ACTION(PM_SUSPEND_PREPARE) }, { NOTIFIER_ERR_INJECT_ACTION(PM_RESTORE_PREPARE) }, {} } }; static struct dentry *dir; static int err_inject_init(void) { int err; dir = notifier_err_inject_init("pm", notifier_err_inject_dir, &pm_notifier_err_inject, priority); if (IS_ERR(dir)) return PTR_ERR(dir); err = register_pm_notifier(&pm_notifier_err_inject.nb); if (err) debugfs_remove_recursive(dir); return err; } static void err_inject_exit(void) { unregister_pm_notifier(&pm_notifier_err_inject.nb); debugfs_remove_recursive(dir); } module_init(err_inject_init); module_exit(err_inject_exit); MODULE_DESCRIPTION("PM notifier error injection module"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Akinobu Mita "); on value='master'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkat Reddy Talla <vreddytalla@nvidia.com>2016-11-17 23:24:36 +0530
committerMark Brown <broonie@kernel.org>2016-11-23 16:27:42 +0000
commit983779235a4d08f94e8cda073200423e0ff01d2e (patch)
tree254b624bd499c14b09d55abaf209ea95f3c860f7 /tools/perf/Documentation/perf-script.txt
parent383d0fca7035a12f1201277d33e8fc87c9d60c9a (diff)
regulator: max77620: add documentation for MPOK property
Adding documentation for maxim,power-ok-control dts property Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/Documentation/perf-script.txt')