Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256938
b: refs/heads/master
c: b9416f0
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Jul 10, 2011
1 parent 0f65ec4 commit f948217
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 999a4d2a4da0527567e4b17d4da0782509358a83
refs/heads/master: b9416f03fd9f809225a90f63b2fbc86f90010eab
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-shmobile/pm-sh7372.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ static bool pd_active_wakeup(struct device *dev)
return true;
}

static void sh7372_late_pm_domain_off(void)
{
/* request power down of unused pm domains */
queue_work(pm_wq, &sh7372_a4lc.genpd.power_off_work);
queue_work(pm_wq, &sh7372_a4mp.genpd.power_off_work);
queue_work(pm_wq, &sh7372_d4.genpd.power_off_work);
queue_work(pm_wq, &sh7372_a3rv.genpd.power_off_work);
queue_work(pm_wq, &sh7372_a3ri.genpd.power_off_work);
queue_work(pm_wq, &sh7372_a3sg.genpd.power_off_work);
}

void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd)
{
struct generic_pm_domain *genpd = &sh7372_pd->genpd;
Expand All @@ -107,6 +118,8 @@ void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd)
genpd->power_off = pd_power_down;
genpd->power_on = pd_power_up;
pd_power_up(&sh7372_pd->genpd);

shmobile_runtime_pm_late_init = sh7372_late_pm_domain_off;
}

void sh7372_add_device_to_domain(struct sh7372_pm_domain *sh7372_pd,
Expand Down

0 comments on commit f948217

Please sign in to comment.