Paul Walmsley
dc6d1cda04
OMAP2+: hwmod: upgrade per-hwmod mutex to a spinlock
...
Change the per-hwmod mutex to a spinlock. (The per-hwmod lock
serializes most post-initialization hwmod operations such as enable,
idle, and shutdown.) Spinlocks are needed, because in some cases,
hwmods must be enabled from timer interrupt disabled-context, such as
an ISR. The current use-case that is driving this is the OMAP GPIO
block ISR: it can trigger interrupts even with its clocks disabled,
but these clocks are needed for register accesses in the ISR to succeed.
This patch also effectively reverts commit
848240223c35fcc71c424ad51a8e8aef42d3879c - this patch makes
_omap_hwmod_enable() and _omap_hwmod_init() static, renames them back
to _enable() and _idle(), and changes their callers to call the
spinlocking versions. Previously, since omap_hwmod_{enable,init}()
attempted to take mutexes, these functions could not be called while
the timer interrupt was disabled; but now that the functions use
spinlocks and save and restore the IRQ state, it is appropriate to
call them directly.
Kevin Hilman <khilman@deeprootsystems.com> originally proposed this
patch - thanks Kevin.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Benoît Cousson <b-cousson@ti.com>
2010-12-21 19:55:12 -07:00
..
2010-12-10 09:42:51 -08:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-10-08 10:02:49 -07:00
2010-10-08 10:02:49 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-21 19:55:11 -07:00
2010-12-20 18:48:16 -08:00
2010-12-20 18:48:16 -08:00
2010-12-21 19:55:11 -07:00
2010-10-08 10:02:49 -07:00
2010-12-17 17:25:26 -08:00
2010-12-21 19:55:11 -07:00
2010-05-20 12:31:04 -06:00
2010-01-26 20:13:06 -07:00
2010-01-28 18:13:49 -07:00
2010-01-28 18:13:49 -07:00
2010-05-20 12:31:14 -06:00
2010-02-24 12:16:15 -07:00
2010-05-20 12:31:06 -06:00
2010-02-24 12:15:03 -07:00
2010-02-24 17:45:15 -07:00
2010-02-24 12:29:42 -07:00
2010-12-20 17:53:04 -08:00
2010-02-24 17:45:15 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2010-12-20 17:53:04 -08:00
2010-02-24 12:16:15 -07:00
2010-12-20 17:53:04 -08:00
2010-12-20 17:53:04 -08:00
2010-02-24 12:29:42 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2010-05-20 12:31:07 -06:00
2010-10-08 11:40:20 -06:00
2010-05-20 12:31:06 -06:00
2010-09-23 17:14:12 -07:00
2010-05-20 12:31:11 -06:00
2010-02-15 09:27:01 -08:00
2010-09-24 10:23:18 -06:00
2010-09-27 14:02:56 -06:00
2010-11-09 09:26:08 -08:00
2010-09-29 12:43:00 -07:00
2010-09-27 14:02:55 -06:00
2010-07-26 16:34:28 -06:00
2010-05-20 12:31:08 -06:00
2010-10-08 11:40:20 -06:00
2010-12-21 14:45:58 -08:00
2010-12-21 14:45:57 -08:00
2010-12-21 14:45:53 -08:00
2010-12-20 18:48:15 -08:00
2010-12-20 18:38:31 -08:00
2010-06-16 18:03:14 +02:00
2010-10-05 12:05:11 -07:00
2010-02-15 09:27:05 -08:00
2010-12-07 16:26:57 -08:00
2010-08-02 15:30:38 +03:00
2009-10-20 09:40:47 -07:00
2009-12-11 16:16:33 -08:00
2010-09-28 11:39:18 -07:00
2010-08-02 15:30:38 +03:00
2010-10-08 11:40:20 -06:00
2010-10-25 13:46:56 -07:00
2010-07-05 16:31:40 +03:00
2010-10-08 11:40:20 -06:00
2010-12-21 19:55:12 -07:00
2010-10-08 10:12:38 -07:00
2010-06-29 07:55:07 +03:00
2010-12-17 16:48:20 -08:00
2010-12-21 14:30:40 -08:00
2010-12-02 05:43:16 -06:00
2010-12-21 17:05:57 -08:00
2005-11-10 14:26:51 +00:00
2010-10-08 11:40:21 -06:00
2010-11-17 12:01:54 +01:00
2009-12-11 16:16:33 -08:00
2010-11-17 12:01:54 +01:00
2010-11-17 12:01:52 +01:00
2010-11-17 12:01:54 +01:00
2010-07-05 16:31:36 +03:00
2010-11-17 12:01:54 +01:00
2010-07-05 16:31:36 +03:00
2010-11-17 12:01:54 +01:00
2010-12-02 17:03:41 -08:00
2010-12-18 09:33:01 -08:00
2010-08-02 13:18:18 +03:00
2010-12-20 18:38:29 -08:00
2010-12-20 18:38:30 -08:00
2010-12-20 18:38:29 -08:00
2010-12-21 16:48:20 -08:00
2010-07-26 16:34:31 -06:00
2010-07-26 16:34:31 -06:00
2010-12-21 19:55:12 -07:00
2010-12-21 14:30:40 -08:00
2010-08-02 13:18:18 +03:00
2010-08-02 13:18:19 +03:00
2010-12-15 11:33:31 -06:00
2010-08-16 09:22:04 +03:00
2010-02-15 09:26:55 -08:00
2010-12-21 14:30:40 -08:00
2010-12-21 14:30:40 -08:00
2010-01-08 15:23:15 -07:00
2010-01-08 15:23:15 -07:00
2010-12-21 14:30:40 -08:00
2010-12-21 14:29:34 -08:00
2010-12-21 14:45:59 -08:00
2010-12-21 14:29:34 -08:00
2010-09-21 11:51:23 -07:00
2010-12-02 17:08:48 -08:00
2010-12-21 14:29:34 -08:00
2010-12-21 17:05:57 -08:00
2010-08-03 10:21:07 +03:00
2010-02-15 09:27:01 -08:00
2010-12-17 16:48:20 -08:00
2010-09-27 14:02:56 -06:00
2010-01-29 10:14:23 -07:00
2010-12-10 18:04:43 -08:00
2010-10-08 11:40:20 -06:00
2010-09-21 15:12:40 -06:00
2010-09-21 15:12:21 -06:00
2010-09-27 14:02:56 -06:00
2010-05-20 12:31:04 -06:00
2010-11-09 09:29:13 -08:00
2010-09-27 14:02:55 -06:00
2010-09-21 15:12:40 -06:00
2009-11-22 10:24:33 -08:00
2009-10-20 09:40:47 -07:00
2010-12-17 15:13:46 -08:00
2010-12-17 15:13:44 -08:00
2010-02-17 17:23:20 -08:00
2009-10-20 09:40:47 -07:00
2009-10-20 09:40:47 -07:00
2010-02-23 10:57:40 -08:00
2010-12-21 14:45:56 -08:00
2010-12-21 19:55:12 -07:00
2009-10-20 09:40:47 -07:00
2010-12-21 14:45:59 -08:00
2010-09-27 14:02:59 -06:00
2009-10-19 15:25:31 -07:00
2009-10-19 15:25:31 -07:00
2010-11-24 16:49:42 -08:00
2010-10-08 10:02:49 -07:00
2010-02-23 15:29:08 -08:00
2010-07-05 16:31:40 +03:00
2010-10-08 11:40:20 -06:00
2010-10-22 10:22:16 -07:00
2010-07-05 16:31:40 +03:00