diff options
author | Christoph Lameter <cl@linux.com> | 2014-06-05 01:07:56 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 01:54:03 +0200 |
commit | 7c8e0181e6e0b8079c4c2ce902bf52d7a2c6fa5d (patch) | |
tree | fe5aee0e426d8f0528856bb0decb95636ff3e8a0 /mm/swap.c | |
parent | memcg: kill start_kernel()->mm_init_owner(&init_mm) (diff) | |
download | linux-7c8e0181e6e0b8079c4c2ce902bf52d7a2c6fa5d.tar.xz linux-7c8e0181e6e0b8079c4c2ce902bf52d7a2c6fa5d.zip |
mm: replace __get_cpu_var uses with this_cpu_ptr
Replace places where __get_cpu_var() is used for an address calculation
with this_cpu_ptr().
Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c index c0ed4d65438f..913b99dfbea5 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -441,7 +441,7 @@ void rotate_reclaimable_page(struct page *page) page_cache_get(page); local_irq_save(flags); - pvec = &__get_cpu_var(lru_rotate_pvecs); + pvec = this_cpu_ptr(&lru_rotate_pvecs); if (!pagevec_add(pvec, page)) pagevec_move_tail(pvec); local_irq_restore(flags); |