diff options
author | Christoph Lameter <cl@linux.com> | 2014-08-17 19:30:25 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-08-26 19:45:44 +0200 |
commit | 22127e93c587afa01e4f7225d2d1cf1d26ae7dfe (patch) | |
tree | 59e32c175bfe72758e44c1fe1215c13045c80b83 /kernel/time/tick-oneshot.c | |
parent | kernel misc: Replace __get_cpu_var uses (diff) | |
download | linux-22127e93c587afa01e4f7225d2d1cf1d26ae7dfe.tar.xz linux-22127e93c587afa01e4f7225d2d1cf1d26ae7dfe.zip |
time: Replace __get_cpu_var uses
Convert uses of __get_cpu_var for creating a address from a percpu
offset to this_cpu_ptr.
The two cases where get_cpu_var is used to actually access a percpu
variable are changed to use this_cpu_read/raw_cpu_read.
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/time/tick-oneshot.c')
-rw-r--r-- | kernel/time/tick-oneshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/tick-oneshot.c b/kernel/time/tick-oneshot.c index 824109060a33..7ce740e78e1b 100644 --- a/kernel/time/tick-oneshot.c +++ b/kernel/time/tick-oneshot.c @@ -59,7 +59,7 @@ void tick_setup_oneshot(struct clock_event_device *newdev, */ int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) { - struct tick_device *td = &__get_cpu_var(tick_cpu_device); + struct tick_device *td = this_cpu_ptr(&tick_cpu_device); struct clock_event_device *dev = td->evtdev; if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) || |