From patchwork Wed Aug 26 14:52:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11738671 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 16D9F109B for ; Wed, 26 Aug 2020 14:53:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CD79B2078D for ; Wed, 26 Aug 2020 14:53:16 +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="jmGYaI3y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD79B2078D 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 898336B000E; Wed, 26 Aug 2020 10:53:15 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 821698D0001; Wed, 26 Aug 2020 10:53:15 -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 6E7736B0022; Wed, 26 Aug 2020 10:53:15 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0058.hostedemail.com [216.40.44.58]) by kanga.kvack.org (Postfix) with ESMTP id 5769B6B000E for ; Wed, 26 Aug 2020 10:53:15 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id EFD8C3626 for ; Wed, 26 Aug 2020 14:53:14 +0000 (UTC) X-FDA: 77193012750.20.cast86_470746827065 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 98A42180C0609 for ; Wed, 26 Aug 2020 14:53:14 +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;04yrfm5jo7yhyro79zyinujn5wxj8yc4frdze4wjpnfu3pmigtmu9mix59nkn34.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:24,LUA_SUMMARY:none X-HE-Tag: cast86_470746827065 X-Filterd-Recvd-Size: 4884 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Wed, 26 Aug 2020 14:53:14 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id i13so1006013pjv.0 for ; Wed, 26 Aug 2020 07:53:13 -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=jmGYaI3y7+bK+s5Vq9pxlP9AKQX1/f2kkCSAPyU9Hi/mpiMeJEdVOU/SlTvNdwQGsE W2SIrItUXPPqUOIXKf/izMh44nFlQ2RurR55qfloUW+TfZiQl2VuBZNvaB49yw6EoD4a WxeSZrkQmX/QFaDD02lYY1c3hZD/Mb97GrTdTrkW4nhVIts6RXNT93bIwp8VxBnDweHM g845Oid0hY/B7UgntbvniBX8J6laGUpy2/U4xJWfWAToa3tq1C9lqyWqPQUihHF3u6pk Et/YbsLLCXqIJwlosSd6raD7od40ipLLbl2bAjKmM86DA4Fd+m/rvkN3KdTJEvDaHCh5 2VgQ== 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=fTVMRh012SLwgdnMBtsKXWsRCTdZsyKQEnOl4oIPaxIOvvsFKCdQha4KgnVs2PzBUs Pu66g2kKsdpqXEahnbz0NfTBmKSmkF2WHY0OkW6ci1LuIBb6BLyiNovC9/A1P59ikIgV PDJ1q7msQUkN4V4ToNiQPZhE50QkhSQI7OVU/zHib3QezZc3/8AT/hELmXY3Mve+YMZ0 vEIn3iFGwfj10nNNlFYS3eA+3NIVVCevzYQHp5Lqvm36Samv41ZS4l4Tt+3gs5BU93XZ s2ujPKX3bjxkrgONCJUP1SO8u01/H9BhkJ1H3kNy5/GLqwj30d6sxBNu4RfVmbZ5L5Qb +pWw== X-Gm-Message-State: AOAM532t8AvMYe6RlBydBh9W1557hXHiHKanjCXt5yTAsjtrpjTLz8du 3xs16CuUmDAm3VD23axLzM0= X-Google-Smtp-Source: ABdhPJyDERUfmwLIZqqYQ35h4vwNp6nxCDqre3x7r/Ny6pXllt93M9hcqByBq70CqedHa2ThMMOxZA== X-Received: by 2002:a17:90b:4d0f:: with SMTP id mw15mr6341778pjb.174.1598453593254; Wed, 26 Aug 2020 07:53:13 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-212-105.tpgi.com.au. [61.68.212.105]) by smtp.gmail.com with ESMTPSA id r7sm3327140pfl.186.2020.08.26.07.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:53:12 -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 v2 04/23] arm: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:30 +1000 Message-Id: <20200826145249.745432-5-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200826145249.745432-1-npiggin@gmail.com> References: <20200826145249.745432-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 98A42180C0609 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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 --- 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