aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2010-07-26 18:34:29 -0400
committerPaul Walmsley <paul@pwsan.com>2010-07-26 18:34:29 -0400
commit848240223c35fcc71c424ad51a8e8aef42d3879c (patch)
tree6c11872b61e0aa4eed0db43e362cdbac8c7c9284 /arch/arm/plat-omap/include
parentfa98347ebf1c516e49694e1584cd96a63428676a (diff)
OMAP: hwmod: add non-locking versions of enable and idle functions
Some hwmods may need to be idled/enabled in atomic context, so non-locking versions of these functions are required. Most users should not need these and usage of theses should be controlled to understand why access is being done in atomic context. For this reason, the non-locking functions are only exposed at the hwmod level and not at the omap-device level. The use-case that led to the need for the non-locking versions is hwmods that are enabled/idled from within the core idle/suspend path. Since interrupts are already disabled here, the mutex-based locking in hwmod can sleep and will cause potential deadlocks. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index 0eccc09ac4a9..253f6e55638c 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -486,7 +486,9 @@ int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh));
486int omap_hwmod_late_init(void); 486int omap_hwmod_late_init(void);
487 487
488int omap_hwmod_enable(struct omap_hwmod *oh); 488int omap_hwmod_enable(struct omap_hwmod *oh);
489int _omap_hwmod_enable(struct omap_hwmod *oh);
489int omap_hwmod_idle(struct omap_hwmod *oh); 490int omap_hwmod_idle(struct omap_hwmod *oh);
491int _omap_hwmod_idle(struct omap_hwmod *oh);
490int omap_hwmod_shutdown(struct omap_hwmod *oh); 492int omap_hwmod_shutdown(struct omap_hwmod *oh);
491 493
492int omap_hwmod_enable_clocks(struct omap_hwmod *oh); 494int omap_hwmod_enable_clocks(struct omap_hwmod *oh);