| .. | .. |
|---|
| 74 | 74 | .max_cycles = 10, |
|---|
| 75 | 75 | }; |
|---|
| 76 | 76 | |
|---|
| 77 | | -__cacheline_aligned_in_smp DEFINE_SEQLOCK(jiffies_lock); |
|---|
| 77 | +__cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(jiffies_lock); |
|---|
| 78 | +__cacheline_aligned_in_smp seqcount_t jiffies_seq; |
|---|
| 78 | 79 | |
|---|
| 79 | 80 | #if (BITS_PER_LONG < 64) |
|---|
| 80 | 81 | u64 get_jiffies_64(void) |
|---|
| .. | .. |
|---|
| 83 | 84 | u64 ret; |
|---|
| 84 | 85 | |
|---|
| 85 | 86 | do { |
|---|
| 86 | | - seq = read_seqbegin(&jiffies_lock); |
|---|
| 87 | + seq = read_seqcount_begin(&jiffies_seq); |
|---|
| 87 | 88 | ret = jiffies_64; |
|---|
| 88 | | - } while (read_seqretry(&jiffies_lock, seq)); |
|---|
| 89 | + } while (read_seqcount_retry(&jiffies_seq, seq)); |
|---|
| 89 | 90 | return ret; |
|---|
| 90 | 91 | } |
|---|
| 91 | 92 | EXPORT_SYMBOL(get_jiffies_64); |
|---|