HomeFreeBSD

MFC r312888:

Description

MFC r312888:

Introduce read_mostly and exclusive_cache_line macros.

The intended use is to annotate frequently used globals which either rarely
change (and thus can be grouped in the same cacheline) or are an atomic counter
(which means it may benefit from being the only variable in the cacheline).

Linker script support is provided only for amd64. Architectures without it risk
having other variables put in, i.e. as if they were not annotated. This is
harmless from correctness point of view.

Details

Provenance
mjgAuthored on
Parents
rS315283: Fix sysdecode_cap_rights which currently prints bogus capability rights
Branches
Unknown
Tags
Unknown