Skip to content

Commit

Permalink
Revert "arm64/vdso: Fix nsec handling for CLOCK_MONOTONIC_RAW"
Browse files Browse the repository at this point in the history
This reverts commit a4c6fe5.

Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
khusika committed Oct 13, 2018
1 parent 80f93fa commit b651361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/kernel/vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ void update_vsyscall(struct timekeeper *tk)
vdso_data->raw_time_nsec = tk->tkr_raw.xtime_nsec;
vdso_data->xtime_clock_sec = tk->xtime_sec;
vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec;
/* tkr_raw.xtime_nsec == 0 */
vdso_data->cs_mono_mult = tk->tkr_mono.mult;
vdso_data->cs_raw_mult = tk->tkr_raw.mult;
/* tkr_mono.shift == tkr_raw.shift */
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/kernel/vdso/gettimeofday.S
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ monotonic_raw:
seqcnt_check fail=monotonic_raw

/* All computations are done with left-shifted nsecs. */
lsl x14, x14, x12
get_nsec_per_sec res=x9
lsl x9, x9, x12

Expand Down

0 comments on commit b651361

Please sign in to comment.