parisc: Replace __get_cpu_var uses for address calculation
authorChristoph Lameter <cl@linux.com>
Fri, 14 Feb 2014 20:18:56 +0000 (14:18 -0600)
committerHelge Deller <deller@gmx.de>
Thu, 3 Apr 2014 18:50:33 +0000 (20:50 +0200)
Convert to the use of this_cpu_ptr().

Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/lib/memcpy.c
arch/parisc/mm/fault.c

index 413dc1769299685f00289193ca301ba7e2c0839d..b2b441b32341acbc473533ecbd24057b8c564eda 100644 (file)
@@ -470,7 +470,7 @@ static unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len)
                return 0;
 
        /* if a load or store fault occured we can get the faulty addr */
-       d = &__get_cpu_var(exception_data);
+       d = this_cpu_ptr(&exception_data);
        fault_addr = d->fault_addr;
 
        /* error in load or store? */
index 9d08c71a967ed2e1e86189272369f4b794b8453c..747550762f3ca25acf6dabdfcc7d8aef9de31779 100644 (file)
@@ -151,7 +151,7 @@ int fixup_exception(struct pt_regs *regs)
        fix = search_exception_tables(regs->iaoq[0]);
        if (fix) {
                struct exception_data *d;
-               d = &__get_cpu_var(exception_data);
+               d = this_cpu_ptr(&exception_data);
                d->fault_ip = regs->iaoq[0];
                d->fault_space = regs->isr;
                d->fault_addr = regs->ior;