Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285837
b: refs/heads/master
c: e59a8db
h: refs/heads/master
i:
  285835: 5cbfade
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jan 13, 2012
1 parent 926d7cf commit bd0e3a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f1d6986bae57b6d11e2c9ce5e66b6c6b0e3684d
refs/heads/master: e59a8db8d9b7c02e0bbefbeb18a3836288a97b8a
24 changes: 19 additions & 5 deletions trunk/drivers/base/power/domain_governor.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <linux/pm_qos.h>
#include <linux/hrtimer.h>

#ifdef CONFIG_PM_RUNTIME

/**
* default_stop_ok - Default PM domain governor routine for stopping devices.
* @dev: Device to check.
Expand Down Expand Up @@ -137,16 +139,28 @@ static bool default_power_down_ok(struct dev_pm_domain *pd)
return true;
}

struct dev_power_governor simple_qos_governor = {
.stop_ok = default_stop_ok,
.power_down_ok = default_power_down_ok,
};

static bool always_on_power_down_ok(struct dev_pm_domain *domain)
{
return false;
}

#else /* !CONFIG_PM_RUNTIME */

bool default_stop_ok(struct device *dev)
{
return false;
}

#define default_power_down_ok NULL
#define always_on_power_down_ok NULL

#endif /* !CONFIG_PM_RUNTIME */

struct dev_power_governor simple_qos_governor = {
.stop_ok = default_stop_ok,
.power_down_ok = default_power_down_ok,
};

/**
* pm_genpd_gov_always_on - A governor implementing an always-on policy
*/
Expand Down

0 comments on commit bd0e3a1

Please sign in to comment.