diff options
author | Paul Walmsley <paul@pwsan.com> | 2011-03-10 05:50:09 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-03-10 05:50:09 -0500 |
commit | 570b54c7fae65b65320d5a7d4b2249c86eeaa497 (patch) | |
tree | 46d54c9473cbdb17913e162e2a4fb067f7c26d00 /arch/arm/mach-omap2/clockdomain.c | |
parent | 9599217a06da5f5a95794ca9192c14317d441187 (diff) |
OMAP2+: clockdomain: add flag that will block autodeps from being added for a clockdomain
Add a new clockdomain flag, CLKDM_NO_AUTODEPS, which, when marked on a
clockdomain, will prevent "autodeps" from being associated with the
clockdomain. ("Autodeps" are sleep dependencies and wakeup
dependencies from/to processor modules that are automatically added to
a clockdomain when it is in hardware-supervised idle mode. They are
deprecated -- a relic from the old CDP trees -- but are still in use
for OMAP3.)
Also, prevent the hwmod code from adding or removing initiator
dependencies for clockdomains with this flag set.
This patch should allow others to test which clockdomains actually
still need autodeps.
Thanks to Kevin Hilman <khilman@ti.com> for noting that the original
version should also modify the hwmod code.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/clockdomain.c')
-rw-r--r-- | arch/arm/mach-omap2/clockdomain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index 58e42f76603f..2b4ab0beff48 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c | |||
@@ -181,7 +181,7 @@ static void _clkdm_add_autodeps(struct clockdomain *clkdm) | |||
181 | { | 181 | { |
182 | struct clkdm_autodep *autodep; | 182 | struct clkdm_autodep *autodep; |
183 | 183 | ||
184 | if (!autodeps) | 184 | if (!autodeps || clkdm->flags & CLKDM_NO_AUTODEPS) |
185 | return; | 185 | return; |
186 | 186 | ||
187 | for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { | 187 | for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { |
@@ -215,7 +215,7 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm) | |||
215 | { | 215 | { |
216 | struct clkdm_autodep *autodep; | 216 | struct clkdm_autodep *autodep; |
217 | 217 | ||
218 | if (!autodeps) | 218 | if (!autodeps || clkdm->flags & CLKDM_NO_AUTODEPS) |
219 | return; | 219 | return; |
220 | 220 | ||
221 | for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { | 221 | for (autodep = autodeps; autodep->clkdm.ptr; autodep++) { |