From patchwork Fri Feb 14 20:18:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Christoph Lameter (Ampere)" X-Patchwork-Id: 3653991 X-Patchwork-Delegate: deller@gmx.de Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3F9ACBF13A for ; Fri, 14 Feb 2014 20:30:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D0662017A for ; Fri, 14 Feb 2014 20:30:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DD5B20172 for ; Fri, 14 Feb 2014 20:30:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753084AbaBNUTo (ORCPT ); Fri, 14 Feb 2014 15:19:44 -0500 Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40]:52766 "EHLO qmta04.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984AbaBNUTl (ORCPT ); Fri, 14 Feb 2014 15:19:41 -0500 Received: from omta04.emeryville.ca.mail.comcast.net ([76.96.30.35]) by qmta04.emeryville.ca.mail.comcast.net with comcast id SKDw1n0040lTkoCA4LKhHv; Fri, 14 Feb 2014 20:19:41 +0000 Received: from gentwo.org ([98.213.233.247]) by omta04.emeryville.ca.mail.comcast.net with comcast id SLKe1n00K5Lw0ES8QLKfMp; Fri, 14 Feb 2014 20:19:40 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 8ECF662CDD; Fri, 14 Feb 2014 14:19:05 -0600 (CST) Message-Id: <20140214201905.495909920@linux.com> Date: Fri, 14 Feb 2014 14:18:56 -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 15/48] parisc: Replace __get_cpu_var uses for address calculation References: <20140214201841.826179349@linux.com> Content-Disposition: inline; filename=this_parisc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1392409181; bh=FAGGV30AhtkEAxPZsDvtFuU5vFZiR1doA9bCbaY98Xo=; h=Received:Received:Received:Message-Id:Date:From:To:Subject: Content-Type; b=DdE0+sqlFiMiwMTY05uKAokxe0qSm7Fc694dNnCEwpKA4jp1fWEvc5+7SplUmu2Rn W9QRu47G/e4PqFzBlWYpVA8FarbJ8QkjiNiCcWQGSd+Ml04zQSOQR7Xp3Ul8BO5GKP jkW5Tqze7bVka3VNk6XkhWQ8jgNvHHigIWVq5JevlC72+zKQd1oNrm62+qnb7fu7uO FamjvVGoJZr5A082DSJ0UXh/s0sxXqfus4gLu384u1BTxfHFgWo3cxEp/o6dWFb93C jvNOhiSlFPkjVJX2ndIjIWHIeQuKkKanuBRLCAtzhLuXYk1zk7eacvi0kbGvQS9rfh E6q/sDeANJRXw== 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.4 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;