powerpc: Replace __get_cpu_var uses
[cascardo/linux.git] / arch / powerpc / platforms / pseries / ras.c
index 5a4d0fc..c3b2a7e 100644 (file)
@@ -302,8 +302,8 @@ static struct rtas_error_log *fwnmi_get_errinfo(struct pt_regs *regs)
        /* If it isn't an extended log we can use the per cpu 64bit buffer */
        h = (struct rtas_error_log *)&savep[1];
        if (!rtas_error_extended(h)) {
-               memcpy(&__get_cpu_var(mce_data_buf), h, sizeof(__u64));
-               errhdr = (struct rtas_error_log *)&__get_cpu_var(mce_data_buf);
+               memcpy(this_cpu_ptr(&mce_data_buf), h, sizeof(__u64));
+               errhdr = (struct rtas_error_log *)this_cpu_ptr(&mce_data_buf);
        } else {
                int len, error_log_length;