Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298723
b: refs/heads/master
c: 0eb4fd9
h: refs/heads/master
i:
  298721: a6375b8
  298719: a622044
v: v3
  • Loading branch information
Nishanth Menon authored and Paul Walmsley committed Apr 4, 2012
1 parent 1412b8e commit c587595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ac387330a67635b4e4b946416e792bc9dd4b8f05
refs/heads/master: 0eb4fd9b3e4d08973f7f086dbdb14a0ad5c3d76d
5 changes: 3 additions & 2 deletions trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,17 +441,18 @@ static int __init clk_disable_unused(void)
return 0;

pr_info("clock: disabling unused clocks to save power\n");

spin_lock_irqsave(&clockfw_lock, flags);
list_for_each_entry(ck, &clocks, node) {
if (ck->ops == &clkops_null)
continue;

if (ck->usecount > 0 || !ck->enable_reg)
continue;

spin_lock_irqsave(&clockfw_lock, flags);
arch_clock->clk_disable_unused(ck);
spin_unlock_irqrestore(&clockfw_lock, flags);
}
spin_unlock_irqrestore(&clockfw_lock, flags);

return 0;
}
Expand Down

0 comments on commit c587595

Please sign in to comment.