diff options
author | Johan Hovold <[email protected]> | 2013-06-12 14:04:56 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-06-12 16:29:46 -0700 |
commit | e9f08bbe3f97829975d2b59091ef557101c83f61 (patch) | |
tree | b31705b2e71ba74c55a29d447386c41de50d9a91 /lib/mpi/mpi-bit.c | |
parent | e304fcd075a0e97d0e538dd4408b95406b505f85 (diff) |
rtc-at91rm9200: add shadow interrupt mask
Add shadow interrupt-mask register which can be used on SoCs where the
actual hardware register is broken.
Note that some care needs to be taken to make sure the shadow mask
corresponds to the actual hardware state. The added overhead is not an
issue for the non-broken SoCs due to the relatively infrequent
interrupt-mask updates. We do, however, only use the shadow mask value
as a fall-back when it actually needed as there is still a theoretical
possibility that the mask is incorrect (see the code for details).
Signed-off-by: Johan Hovold <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Cc: Douglas Gilbert <[email protected]>
Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Ludovic Desroches <[email protected]>
Cc: Robert Nelson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions