Skip to content
Commit f24ade3a authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86, sched_clock(): mark variables read-mostly



Impact: micro-optimization

There's a number of variables in the sched_clock() path that are
in .data/.bss - but not marked __read_mostly. This creates the
danger of accidental false cacheline sharing with some other,
write-often variable.

So mark them __read_mostly.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8325d9c0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment