diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/hrtimer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index e6e8278bcb18..76d759ce6231 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -518,9 +518,8 @@ int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp) | |||
518 | { | 518 | { |
519 | struct hrtimer_base *bases; | 519 | struct hrtimer_base *bases; |
520 | 520 | ||
521 | tp->tv_sec = 0; | ||
522 | bases = per_cpu(hrtimer_bases, raw_smp_processor_id()); | 521 | bases = per_cpu(hrtimer_bases, raw_smp_processor_id()); |
523 | tp->tv_nsec = bases[which_clock].resolution; | 522 | *tp = ktime_to_timespec(bases[which_clock].resolution); |
524 | 523 | ||
525 | return 0; | 524 | return 0; |
526 | } | 525 | } |