/* * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems * * Copyright (c) 2010 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. * * This file is released under the GPLv2. */ #include <linux/pm.h> #include <linux/pm_runtime.h> #include <linux/export.h> #include <linux/suspend.h> #ifdef CONFIG_PM /** * pm_generic_runtime_suspend - Generic runtime suspend callback for subsystems. * @dev: Device to suspend. * * If PM operations are defined for the @dev's driver and they include * ->runtime_suspend(), execute it and return its error code. Otherwise, * return 0. */
int pm_generic_runtime_suspend(struct device *dev) { const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; int ret; ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0; return ret; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 50 | 98.04% | 1 | 50.00% |
ohad ben-cohen | ohad ben-cohen | 1 | 1.96% | 1 | 50.00% |
Total | 51 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 50 | 98.04% | 1 | 50.00% |
ohad ben-cohen | ohad ben-cohen | 1 | 1.96% | 1 | 50.00% |
Total | 51 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 52 | 100.00% | 1 | 100.00% |
Total | 52 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 4 | 100.00% |
Total | 44 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 44 | 100.00% | 2 | 100.00% |
Total | 44 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 42 | 100.00% | 1 | 100.00% |
Total | 42 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 32 | 100.00% | 1 | 100.00% |
Total | 32 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
rafael j. wysocki | rafael j. wysocki | 1163 | 99.15% | 6 | 54.55% |
paul gortmaker | paul gortmaker | 3 | 0.26% | 1 | 9.09% |
ohad ben-cohen | ohad ben-cohen | 2 | 0.17% | 1 | 9.09% |
aaro koskinen | aaro koskinen | 2 | 0.17% | 1 | 9.09% |
ulf hansson | ulf hansson | 2 | 0.17% | 1 | 9.09% |
geert uytterhoeven | geert uytterhoeven | 1 | 0.09% | 1 | 9.09% |
Total | 1173 | 100.00% | 11 | 100.00% |