From patchwork Tue Jul 28 03:33:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688015 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9C807912 for ; Tue, 28 Jul 2020 03:34:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5DF5A207CD for ; Tue, 28 Jul 2020 03:34:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QHMAvZm/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DF5A207CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 750446B0008; Mon, 27 Jul 2020 23:34:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6D7D46B000A; Mon, 27 Jul 2020 23:34:36 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 578EF6B000C; Mon, 27 Jul 2020 23:34:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0040.hostedemail.com [216.40.44.40]) by kanga.kvack.org (Postfix) with ESMTP id 40D736B0008 for ; Mon, 27 Jul 2020 23:34:36 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0BB313622 for ; Tue, 28 Jul 2020 03:34:36 +0000 (UTC) X-FDA: 77086067352.09.honey53_61106a826f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id DA9D0180AD815 for ; Tue, 28 Jul 2020 03:34:35 +0000 (UTC) X-Spam-Summary: 1,0,0,6c3d606ef776d1f9,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:2693:3138:3139:3140:3141:3142:3353:3865:3867:3871:4250:5007:6119:6261:6653:7514:7903:9413:9592:10004:11026:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13069:13311:13357:13894:13972:14096:14181:14384:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30034:30054,0,RBL:209.85.216.66:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04ygfw9j99jryb5oh58h3h6pj6p67yc4frdze4wjpnfu3pmigtmu9mix59nkn34.w43qub5fzz1k8o1zw9ttdfje5eius48j737xh6cqu7pwrtgcm35qedroc1zuiax.y-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: honey53_61106a826f66 X-Filterd-Recvd-Size: 4878 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:34:35 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id k71so10767287pje.0 for ; Mon, 27 Jul 2020 20:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nrd8d6fyv75dXwELwu7SjNDDoELmbfaISz3tG67A/Og=; b=QHMAvZm/I0mF7utvjLbQSyiSosPMZuOxRY46k50CA7iZnu7xOPahXjDTi/nli2iOhv Oujn0wifZJR0DIe2O8z1n0MmwDSg9mE3kxEZ/3Bms22rTyKzBjZpGjj4ZRt1TsSZAXKH cxEtM8iWj21TtUr1td7PZ1i6Xfb3xSLRfzOaallNzYOVSTkzj2Y7yKuPBodwXP0ooyRc plFBjkGe3b2VhcXajSxhIDjHOKQS9D34CfcZEhtK2JnsDK6E28/nBVwOwsb90HNxJSHp jCvNTGFACF+ZyyVeYdv5DKC96pLKi++TWTA+CqIsqWVfyWEpL1nESj9KwJxZuZyWGUdV d2ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nrd8d6fyv75dXwELwu7SjNDDoELmbfaISz3tG67A/Og=; b=cfmLu/VfJckxu9ys2pemufYOe9HV3qXHeADNLWfhvhhNWWxofMtXtwHRuUwGr3GH+a nS1OzCVl6/wkIKwHEVSjva0ADSX+EsjRugBbtTrmP6Za+8v0vWn6rCRlRQeC+a1zKSwi PrO22/+JU9R9R1gbPLoJ4+NTulRDpHk3TK4jJBfJeHr79TSdoBxzKpqEVpYR1HJP0xc8 8QalcrXcIfd+7U+MVgMs40wswNZbSZHgsTdBRpQsCbu4d9e9SaWZjcxoojqY6peuwdVD pLVCeRkRm7poGPbNWCc4ElXofaaUzHhCBR0dBspD24zqDcfScj/XF+pmWsLKfKdn0hMA anaw== X-Gm-Message-State: AOAM531HsC7FcMCnSLdcoCFKYLMmp5svlnaSlbCK+ddgNmfSqYDg50CF dB3V64ugjXEJ0PNlFVwX9Rg= X-Google-Smtp-Source: ABdhPJz+ArXXeCto+CwCq9TBJZxoqe/CgzjVj2vgHlZDtuVaDXZVPE2JctuE3f1k9kh4PunK2ucVxw== X-Received: by 2002:a17:90b:4005:: with SMTP id ie5mr2327280pjb.147.1595907274466; Mon, 27 Jul 2020 20:34:34 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (110-174-173-27.tpgi.com.au. [110.174.173.27]) by smtp.gmail.com with ESMTPSA id r4sm998707pji.37.2020.07.27.20.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:34 -0700 (PDT) From: Nicholas Piggin To: linux-arch@vger.kernel.org Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/24] arm: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:45 +1000 Message-Id: <20200728033405.78469-5-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200728033405.78469-1-npiggin@gmail.com> References: <20200728033405.78469-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: DA9D0180AD815 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Nicholas Piggin Signed-off-by: Vineet Gupta --- arch/arm/include/asm/mmu_context.h | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h index f99ed524fe41..84e58956fcab 100644 --- a/arch/arm/include/asm/mmu_context.h +++ b/arch/arm/include/asm/mmu_context.h @@ -26,6 +26,8 @@ void __check_vmalloc_seq(struct mm_struct *mm); #ifdef CONFIG_CPU_HAS_ASID void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk); + +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -92,32 +94,10 @@ static inline void finish_arch_post_lock_switch(void) #endif /* CONFIG_MMU */ -static inline int -init_new_context(struct task_struct *tsk, struct mm_struct *mm) -{ - return 0; -} - - #endif /* CONFIG_CPU_HAS_ASID */ -#define destroy_context(mm) do { } while(0) #define activate_mm(prev,next) switch_mm(prev, next, NULL) -/* - * This is called when "tsk" is about to enter lazy TLB mode. - * - * mm: describes the currently active mm context - * tsk: task which is entering lazy tlb - * cpu: cpu number which is entering lazy tlb - * - * tsk->mm will be NULL - */ -static inline void -enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - /* * This is the actual mm switch as far as the scheduler * is concerned. No registers are touched. We avoid @@ -149,6 +129,6 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, #endif } -#define deactivate_mm(tsk,mm) do { } while (0) +#include #endif