diff options
Diffstat (limited to 'block/blk-iopoll.c')
-rw-r--r-- | block/blk-iopoll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c index 4b8d9b541112..1855bf51edb0 100644 --- a/block/blk-iopoll.c +++ b/block/blk-iopoll.c | |||
@@ -35,7 +35,7 @@ void blk_iopoll_sched(struct blk_iopoll *iop) | |||
35 | unsigned long flags; | 35 | unsigned long flags; |
36 | 36 | ||
37 | local_irq_save(flags); | 37 | local_irq_save(flags); |
38 | list_add_tail(&iop->list, &__get_cpu_var(blk_cpu_iopoll)); | 38 | list_add_tail(&iop->list, this_cpu_ptr(&blk_cpu_iopoll)); |
39 | __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); | 39 | __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); |
40 | local_irq_restore(flags); | 40 | local_irq_restore(flags); |
41 | } | 41 | } |
@@ -79,7 +79,7 @@ EXPORT_SYMBOL(blk_iopoll_complete); | |||
79 | 79 | ||
80 | static void blk_iopoll_softirq(struct softirq_action *h) | 80 | static void blk_iopoll_softirq(struct softirq_action *h) |
81 | { | 81 | { |
82 | struct list_head *list = &__get_cpu_var(blk_cpu_iopoll); | 82 | struct list_head *list = this_cpu_ptr(&blk_cpu_iopoll); |
83 | int rearm = 0, budget = blk_iopoll_budget; | 83 | int rearm = 0, budget = blk_iopoll_budget; |
84 | unsigned long start_time = jiffies; | 84 | unsigned long start_time = jiffies; |
85 | 85 | ||
@@ -201,7 +201,7 @@ static int blk_iopoll_cpu_notify(struct notifier_block *self, | |||
201 | 201 | ||
202 | local_irq_disable(); | 202 | local_irq_disable(); |
203 | list_splice_init(&per_cpu(blk_cpu_iopoll, cpu), | 203 | list_splice_init(&per_cpu(blk_cpu_iopoll, cpu), |
204 | &__get_cpu_var(blk_cpu_iopoll)); | 204 | this_cpu_ptr(&blk_cpu_iopoll)); |
205 | __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); | 205 | __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); |
206 | local_irq_enable(); | 206 | local_irq_enable(); |
207 | } | 207 | } |