diff options
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/dummy_timer.c | 2 | ||||
-rw-r--r-- | drivers/clocksource/metag_generic.c | 2 | ||||
-rw-r--r-- | drivers/clocksource/qcom-timer.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clocksource/dummy_timer.c b/drivers/clocksource/dummy_timer.c index ad3572541728..31990600fcff 100644 --- a/drivers/clocksource/dummy_timer.c +++ b/drivers/clocksource/dummy_timer.c | |||
@@ -28,7 +28,7 @@ static void dummy_timer_set_mode(enum clock_event_mode mode, | |||
28 | static void dummy_timer_setup(void) | 28 | static void dummy_timer_setup(void) |
29 | { | 29 | { |
30 | int cpu = smp_processor_id(); | 30 | int cpu = smp_processor_id(); |
31 | struct clock_event_device *evt = __this_cpu_ptr(&dummy_timer_evt); | 31 | struct clock_event_device *evt = raw_cpu_ptr(&dummy_timer_evt); |
32 | 32 | ||
33 | evt->name = "dummy_timer"; | 33 | evt->name = "dummy_timer"; |
34 | evt->features = CLOCK_EVT_FEAT_PERIODIC | | 34 | evt->features = CLOCK_EVT_FEAT_PERIODIC | |
diff --git a/drivers/clocksource/metag_generic.c b/drivers/clocksource/metag_generic.c index 9e4db41abe3c..b7384b853e5a 100644 --- a/drivers/clocksource/metag_generic.c +++ b/drivers/clocksource/metag_generic.c | |||
@@ -90,7 +90,7 @@ static struct clocksource clocksource_metag = { | |||
90 | 90 | ||
91 | static irqreturn_t metag_timer_interrupt(int irq, void *dummy) | 91 | static irqreturn_t metag_timer_interrupt(int irq, void *dummy) |
92 | { | 92 | { |
93 | struct clock_event_device *evt = &__get_cpu_var(local_clockevent); | 93 | struct clock_event_device *evt = this_cpu_ptr(&local_clockevent); |
94 | 94 | ||
95 | evt->event_handler(evt); | 95 | evt->event_handler(evt); |
96 | 96 | ||
diff --git a/drivers/clocksource/qcom-timer.c b/drivers/clocksource/qcom-timer.c index 8d115db1e651..098c542e5c53 100644 --- a/drivers/clocksource/qcom-timer.c +++ b/drivers/clocksource/qcom-timer.c | |||
@@ -219,7 +219,7 @@ static void __init msm_timer_init(u32 dgt_hz, int sched_bits, int irq, | |||
219 | } | 219 | } |
220 | 220 | ||
221 | /* Immediately configure the timer on the boot CPU */ | 221 | /* Immediately configure the timer on the boot CPU */ |
222 | msm_local_timer_setup(__this_cpu_ptr(msm_evt)); | 222 | msm_local_timer_setup(raw_cpu_ptr(msm_evt)); |
223 | } | 223 | } |
224 | 224 | ||
225 | err: | 225 | err: |