From patchwork Thu Dec 19 15:50:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Christoph Lameter (Ampere)" X-Patchwork-Id: 3382621 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DA5E49F314 for ; Thu, 19 Dec 2013 15:57:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CA73206BA for ; Thu, 19 Dec 2013 15:57:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A8A79206B6 for ; Thu, 19 Dec 2013 15:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755895Ab3LSP4p (ORCPT ); Thu, 19 Dec 2013 10:56:45 -0500 Received: from qmta05.emeryville.ca.mail.comcast.net ([76.96.30.48]:44413 "EHLO qmta05.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753679Ab3LSP4m (ORCPT ); Thu, 19 Dec 2013 10:56:42 -0500 Received: from omta24.emeryville.ca.mail.comcast.net ([76.96.30.92]) by qmta05.emeryville.ca.mail.comcast.net with comcast id 3SvZ1n0021zF43QA5TqcpE; Thu, 19 Dec 2013 15:50:36 +0000 Received: from gentwo.org ([98.213.233.247]) by omta24.emeryville.ca.mail.comcast.net with comcast id 3Tqa1n00C5Lw0ES8kTqa3N; Thu, 19 Dec 2013 15:50:36 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 036955B219; Thu, 19 Dec 2013 09:50:31 -0600 (CST) Message-Id: <20131219155031.935326462@linux.com> Date: Thu, 19 Dec 2013 09:50:26 -0600 From: Christoph Lameter To: Tejun Heo Cc: akpm@linuxfoundation.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Thomas Gleixner , "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org Subject: [PATCH 11/40] parisc: Replace __get_cpu_var uses for address calculation References: <20131219155015.443763038@linux.com> Content-Disposition: inline; filename=this_parisc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1387468236; bh=FAGGV30AhtkEAxPZsDvtFuU5vFZiR1doA9bCbaY98Xo=; h=Received:Received:Received:Message-Id:Date:From:To:Subject: Content-Type; b=RG5KqBzFyD1jwmCj4dj25xMuA45PWs5ec1VXQSn7UZSMkNvma1NaQly26qbTOAg+1 OJnh3BJ0qEImCEbbMOy7GoeVxZPLYktbSZJlrFY5LQ71U6Jp0oPJR8h3bqUf6APJMl vlqot+Q1NTDcFPJmUajjR9oDeWf54e6/TW5p0eF571rddBjCkWu5Mt5Ip/CrSwjkJc yiqhQfAUjQz+MY5298P/JapglIvL9x1KWcz2bn4d0HafV2FYT4lS3ZsuEIPrzuSAGl HQxWRdLxAj4n8babF7MZrm/S5PLEyMDUy3CdZIUNmA57S3GNuS7LM9nEnuH2+zZpuK I1/Hq21jxl9og== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert to the use of this_cpu_ptr(). Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-parisc@vger.kernel.org Signed-off-by: Christoph Lameter --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux/arch/parisc/lib/memcpy.c =================================================================== --- linux.orig/arch/parisc/lib/memcpy.c 2013-12-02 16:07:49.844632157 -0600 +++ linux/arch/parisc/lib/memcpy.c 2013-12-02 16:07:49.844632157 -0600 @@ -470,7 +470,7 @@ static unsigned long pa_memcpy(void *dst 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: linux/arch/parisc/mm/fault.c =================================================================== --- linux.orig/arch/parisc/mm/fault.c 2013-12-02 16:07:49.844632157 -0600 +++ linux/arch/parisc/mm/fault.c 2013-12-02 16:07:49.844632157 -0600 @@ -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;