Skip to content

Commit

Permalink
timekeeping: Minor fixup for timespec64->timespec assignment
Browse files Browse the repository at this point in the history
In the GENERIC_TIME_VSYSCALL_OLD update_vsyscall implementation,
we take the tk_xtime() value, which returns a timespec64, and
store it in a timespec.

This luckily is ok, since the only architectures that use
GENERIC_TIME_VSYSCALL_OLD are ia64 and ppc64, which are both
64 bit systems where timespec64 is the same as a timespec.

Even so, for cleanliness reasons, use the conversion function
to assign the proper type.

Signed-off-by: John Stultz <john.stultz@linaro.org>
  • Loading branch information
John Stultz committed Jul 23, 2014
1 parent 1b3e5c0 commit e2dff1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static inline void update_vsyscall(struct timekeeper *tk)
{
struct timespec xt;

xt = tk_xtime(tk);
xt = timespec64_to_timespec(tk_xtime(tk));
update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->tkr.clock, tk->tkr.mult,
tk->tkr.cycle_last);
}
Expand Down

0 comments on commit e2dff1e

Please sign in to comment.