[PATCH] timecounters: Fix timehand generation read/write

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jun 3 20:32:49 UTC 2015


On Wed, Jun 03, 2015 at 01:46:06PM +0200, Sebastian Huber wrote:
> The compiler is free to re-order load/store instructions to non-volatile
> variables around a load/store of a volatile variable.

This part is wrong. The *compiler* is not free to do such reorder. The
CPU may, as it doesn't really care about volatile.

Joerg


More information about the freebsd-hackers mailing list