Changeset 0163063 in rtems for cpukit/score/src/kern_tc.c

Timestamp:
07/08/15 18:42:08 (9 years ago)
Author:
Konstantin Belousov <kib@…>
Branches:
5, master
Children:
ec349b58
Parents:
4d0ade9
git-author:
Konstantin Belousov <kib@…> (07/08/15 18:42:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/12/17 05:04:10)
Message:

timecounter: Merge FreeBSD change r285286

Reimplement the ordering requirements for the timehands updates, and for timehands consumers, by using fences.

Ensure that the timehands->th_generation reset to zero is visible
before the data update is visible [*]. tc_setget() allowed data update
writes to become visible before generation (but not on TSO
architectures).

Remove tc_setgen(), tc_getgen() helpers, use atomics inline [].

Noted by: alc [*]
Requested by: bde []
Reviewed by: alc, bde
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

Update #3175.

(No files)

Note: See TracChangeset for help on using the changeset viewer.