Thread (30 messages) 30 messages, 5 authors, 2013-02-04

[PATCHv5 07/16] arm: arch_timer: add isbs to register accessors

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2013-01-31 15:35:45

On Thu, Jan 31, 2013 at 12:15:30PM +0000, Mark Rutland wrote:
Without the isbs in arch_timer_get_cnt{p,v}ct the cpu may speculate
reads and return stale values. This could be bad for code sensitive to
changes in expected deltas between calls (e.g. the delay loop).

Without isbs in arch_timer_reg_write the processor may reorder
instructions around enabling/disabling of the timer or writing the
compare value, which we probably don't want.

This patch adds isbs to prevent those issues.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help