mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
19d0070a27
Architectures can have the requirement to add additional architecture specific data to the VDSO data page which needs to be updated independent of the timekeeper updates. To protect these updates vs. concurrent readers and a conflicting update through timekeeping, provide helper functions to make such updates safe. vdso_update_begin() takes the timekeeper_lock to protect against a potential update from timekeeper code and increments the VDSO sequence count to signal data inconsistency to concurrent readers. vdso_update_end() makes the sequence count even again to signal data consistency and drops the timekeeper lock. [ Sven: Add interrupt disable handling to the functions ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200804150124.41692-3-svens@linux.ibm.com |
||
---|---|---|
.. | ||
bits.h | ||
clocksource.h | ||
const.h | ||
datapage.h | ||
helpers.h | ||
jiffies.h | ||
ktime.h | ||
limits.h | ||
math64.h | ||
processor.h | ||
time32.h | ||
time64.h | ||
time.h | ||
vsyscall.h |