Merge branch 'irq-irqdomain-arm-for-linus' of git://git.kernel.org/pub/scm/linux...
[cascardo/linux.git] / arch / powerpc / platforms / pseries / hvCall_inst.c
index 4575f0c..f02ec3a 100644 (file)
@@ -110,7 +110,7 @@ static void probe_hcall_entry(void *ignored, unsigned long opcode, unsigned long
        if (opcode > MAX_HCALL_OPCODE)
                return;
 
-       h = &__get_cpu_var(hcall_stats)[opcode / 4];
+       h = this_cpu_ptr(&hcall_stats[opcode / 4]);
        h->tb_start = mftb();
        h->purr_start = mfspr(SPRN_PURR);
 }
@@ -123,7 +123,7 @@ static void probe_hcall_exit(void *ignored, unsigned long opcode, unsigned long
        if (opcode > MAX_HCALL_OPCODE)
                return;
 
-       h = &__get_cpu_var(hcall_stats)[opcode / 4];
+       h = this_cpu_ptr(&hcall_stats[opcode / 4]);
        h->num_calls++;
        h->tb_total += mftb() - h->tb_start;
        h->purr_total += mfspr(SPRN_PURR) - h->purr_start;