diff options
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 18324305724a..9587aac72f4d 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c | |||
@@ -576,7 +576,7 @@ void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, | |||
576 | 576 | ||
577 | memset(timer, 0, sizeof(struct hrtimer)); | 577 | memset(timer, 0, sizeof(struct hrtimer)); |
578 | 578 | ||
579 | bases = per_cpu(hrtimer_bases, raw_smp_processor_id()); | 579 | bases = __raw_get_cpu_var(hrtimer_bases); |
580 | 580 | ||
581 | if (clock_id == CLOCK_REALTIME && mode != HRTIMER_ABS) | 581 | if (clock_id == CLOCK_REALTIME && mode != HRTIMER_ABS) |
582 | clock_id = CLOCK_MONOTONIC; | 582 | clock_id = CLOCK_MONOTONIC; |
@@ -599,7 +599,7 @@ int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp) | |||
599 | { | 599 | { |
600 | struct hrtimer_base *bases; | 600 | struct hrtimer_base *bases; |
601 | 601 | ||
602 | bases = per_cpu(hrtimer_bases, raw_smp_processor_id()); | 602 | bases = __raw_get_cpu_var(hrtimer_bases); |
603 | *tp = ktime_to_timespec(bases[which_clock].resolution); | 603 | *tp = ktime_to_timespec(bases[which_clock].resolution); |
604 | 604 | ||
605 | return 0; | 605 | return 0; |