mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 14:45:11 +07:00
74a622be3d
The update of the vdso data happens under xtime_lock, so adding a nested lock is pointless. Just use a seqcount to sync the readers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
24 lines
497 B
C
24 lines
497 B
C
/*
|
|
* (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
|
|
* Contributed by Peter Keilty <peter.keilty@hp.com>
|
|
*
|
|
* fsyscall gettimeofday data
|
|
*/
|
|
|
|
struct fsyscall_gtod_data_t {
|
|
seqcount_t seq;
|
|
struct timespec wall_time;
|
|
struct timespec monotonic_time;
|
|
cycle_t clk_mask;
|
|
u32 clk_mult;
|
|
u32 clk_shift;
|
|
void *clk_fsys_mmio;
|
|
cycle_t clk_cycle_last;
|
|
} ____cacheline_aligned;
|
|
|
|
struct itc_jitter_data_t {
|
|
int itc_jitter;
|
|
cycle_t itc_lastcycle;
|
|
} ____cacheline_aligned;
|
|
|