From patchwork Thu Sep 17 12:50:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 53794 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 6B55722E57 for ; Thu, 17 Sep 2015 12:53:35 +0000 (UTC) Received: by lamf6 with SMTP id f6sf6772323lam.1 for ; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=jrMigghpg/s5GWR1o6m9EOaTZtdyJ6238d609e+woOY=; b=MHGGOMCU7qp9fAc6rFsg2mHfJINhi7/qr6IozEsLsalFgezjoSxyaKrFpVWCNVRIY2 LU/oU4KPR6i60Sp3AJL7Yj4uGg/TVIYHsJvKbQw0iAvqskl6FexfMp2e6HxqcdylF7H7 Q6FTRxfAU46A11DS22Db72X19Ozjn34m1l3ygqxRPVUth1Upyn0JPOt15LeabSh88FKn 9x2P77Bg+Qn13k+pG+xH3HyU3h6z3HeJ+CkLqjDAqivmKBHoaFWk5fpsXwYt7oJNTO0V hfrwKqr/lm+lhPLe/cplWvjp63eFdu0yaWxQyOuqJzk/NBCAe+2T5ZQg9Tw/TPwv+A7e g8pA== X-Gm-Message-State: ALoCoQlmXWSeMt4ceYG462U4spu5lRwF5sMCzqN02yw1+aYCprEOzZYDBf03qo1J3MNERfuOHVb0 X-Received: by 10.112.149.39 with SMTP id tx7mr6583373lbb.11.1442494414377; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.229 with SMTP id z5ls81080lal.8.gmail; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) X-Received: by 10.112.168.7 with SMTP id zs7mr36240981lbb.26.1442494414131; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id v3si2067189lbw.9.2015.09.17.05.53.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lanb10 with SMTP id b10so10427648lan.3 for ; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr33670888laf.76.1442494414019; Thu, 17 Sep 2015 05:53:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp3052364lbq; Thu, 17 Sep 2015 05:53:33 -0700 (PDT) X-Received: by 10.67.30.136 with SMTP id ke8mr73036931pad.16.1442494413010; Thu, 17 Sep 2015 05:53:33 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id al4si5194830pbd.110.2015.09.17.05.53.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:53:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcYfo-00081p-76; Thu, 17 Sep 2015 12:52:24 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcYey-0007Px-OM for linux-arm-kernel@bombadil.infradead.org; Thu, 17 Sep 2015 12:51:32 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by merlin.infradead.org with esmtp (Exim 4.85 #2 (Red Hat Linux)) id 1ZcYew-0002xv-V8 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 12:51:31 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.139]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t8HCp6wo025751; Thu, 17 Sep 2015 13:51:06 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 33BE21AE3243; Thu, 17 Sep 2015 13:51:12 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/10] arm64: mm: kill mm_cpumask usage Date: Thu, 17 Sep 2015 13:50:17 +0100 Message-Id: <1442494219-6133-9-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442494219-6133-1-git-send-email-will.deacon@arm.com> References: <1442494219-6133-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_085131_263926_4BEE8EE3 X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.96.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: catalin.marinas@arm.com, Will Deacon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 mm_cpumask isn't actually used for anything on arm64, so remove all the code trying to keep it up-to-date. Signed-off-by: Will Deacon --- arch/arm64/kernel/smp.c | 7 ------- arch/arm64/mm/context.c | 2 -- 2 files changed, 9 deletions(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index fdd4d4dbd64f..03b0aa28ea61 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -142,7 +142,6 @@ asmlinkage void secondary_start_kernel(void) */ atomic_inc(&mm->mm_count); current->active_mm = mm; - cpumask_set_cpu(cpu, mm_cpumask(mm)); set_my_cpu_offset(per_cpu_offset(smp_processor_id())); printk("CPU%u: Booted secondary processor\n", cpu); @@ -233,12 +232,6 @@ int __cpu_disable(void) * OK - migrate IRQs away from this CPU */ migrate_irqs(); - - /* - * Remove this CPU from the vm mask set of all processes. - */ - clear_tasks_mm_cpumask(cpu); - return 0; } diff --git a/arch/arm64/mm/context.c b/arch/arm64/mm/context.c index 4b9ec4484e3f..f636a2639f03 100644 --- a/arch/arm64/mm/context.c +++ b/arch/arm64/mm/context.c @@ -132,7 +132,6 @@ set_asid: bump_gen: asid |= generation; - cpumask_clear(mm_cpumask(mm)); return asid; } @@ -169,7 +168,6 @@ void check_and_switch_context(struct mm_struct *mm, unsigned int cpu) raw_spin_unlock_irqrestore(&cpu_asid_lock, flags); switch_mm_fastpath: - cpumask_set_cpu(cpu, mm_cpumask(mm)); cpu_switch_mm(mm->pgd, mm); }