Home
last modified time | relevance | path

Searched hist:"45801042225 c66a66fb2cb50fae6ff71883a99d6" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm/include/asm/
H A Darch_timer.hdiff 45801042225c66a66fb2cb50fae6ff71883a99d6 Fri Jan 11 15:32:33 CET 2013 Mark Rutland <mark.rutland@arm.com> arm: arch_timer: add isbs to register accessors

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>