From patchwork Tue Jul 28 03:33:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688017 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 73165722 for ; Tue, 28 Jul 2020 03:34:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3E10D21744 for ; Tue, 28 Jul 2020 03:34:41 +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="HnC3UjGv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E10D21744 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 4E0936B000A; Mon, 27 Jul 2020 23:34:40 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 467B66B000C; Mon, 27 Jul 2020 23:34:40 -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 32FE16B000D; Mon, 27 Jul 2020 23:34:40 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 1C0A36B000A for ; Mon, 27 Jul 2020 23:34:40 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C3A171EE6 for ; Tue, 28 Jul 2020 03:34:39 +0000 (UTC) X-FDA: 77086067478.23.dirt96_2c08d1626f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id 876E537613 for ; Tue, 28 Jul 2020 03:34:39 +0000 (UTC) X-Spam-Summary: 1,0,0,6f713c2a1cd0c233,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41: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:2890:3138:3139:3140:3141:3142:3352:3872:3873:3876:4042:4250:5007:6261:6653:7514:9413:9592:10004:11026:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13069:13311:13357:13894:14096:14181:14384:14394:14687:14721:21080:21433:21444:21450:21451:21611:21627:21666:21740:30001:30054,0,RBL:209.85.210.194:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yfao45k6bprgey97xinedt3ft5byps3oqjjzayptewzi4ap6hqomt5eabr5nm.34udrf67e13637gk1gpx9zj81dqd1kwfzm6ozjc5ybyae8zcuuaxtj9o4kqkm96.g-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:none,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: dirt96_2c08d1626f66 X-Filterd-Recvd-Size: 4653 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:34:39 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id w126so10002490pfw.8 for ; Mon, 27 Jul 2020 20:34:38 -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=KLCo3Tk+lxREvcakRGac/Ng0j4T/GOteVNveKT3Mrb0=; b=HnC3UjGv+m0tU9xTbpRWvbcPR7+Lt5ZN3EL28a/0mi8A/q+hbAczLsS3nUVqiGLiuW EiniTd5jtilMJZFmO0PMPi7a+blkrENBtM9oMLNODC3zJ47JaPCeNqklG71kRDoh3yFg HbK9DYUTb1/8B4ykFsAsLsGEaFwWbbZaMVEeU4Sbgx5UK14DK3qtAZCGtxeaOhNf08r0 zXZDVWgYlqQZlIVKaXvX+ouKXW+XvptAqLX+kha+1E4F2czSCLJ7mOTKjpTzZs4YhJar g0BmGmRvqG/YhqfVf5PSUeEfeLMeOi5zfXVLkGmM+O9wSf+9XGCZHQYm6CxvjAxMo36Z NjmQ== 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=KLCo3Tk+lxREvcakRGac/Ng0j4T/GOteVNveKT3Mrb0=; b=Wd9lridysymMou7Ev3RlQUlWvTRto3anzxlxDrtHbOQNrZC3ZgW4CrPsgasnTBOZCp cX8fgT8nstIvduVoY64hxSzCRknyztDzKNLPiilEZj76pvGYWw06KvtuHQtGOXjx0qCd afdiU6WP1NILjlnM+lcjLfGpbGi9wG3mf1Amb4cNPbSHKfIvplTPaMTBSQyPPMEIGNcv djpMBd1mFYGzbindRhVvPL42vn0J5Eqco7jR3+RwzcJQLhpYRiZM0N67YRKx0eLku7Sd upw4fvqsJXky8/dZMH1YR/jUQkc5RBGbUJ4L2E+drNZmvKnLAJtEEeMcP7r1pAcp3H/s mViA== X-Gm-Message-State: AOAM530QMdxFO6xWv3ZeDAtl5IKy9HHuqUbh7RV+Kk3A5Ha9FtD2TM5l 6z/B/dLaGSHwq68V8Ee9jRE= X-Google-Smtp-Source: ABdhPJxqkjcQJjy20YQ8lm0iiv+MQTiwXbUI2uiLeEqgTNovbPmCo9H8X++qot7CTFtYr/wPKm7S+g== X-Received: by 2002:a63:395:: with SMTP id 143mr16621520pgd.57.1595907278354; Mon, 27 Jul 2020 20:34:38 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:37 -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 , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/24] arm64: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:46 +1000 Message-Id: <20200728033405.78469-6-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: 876E537613 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Nicholas Piggin --- arch/arm64/include/asm/mmu_context.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h index b0bd9b55594c..0f5e351f586a 100644 --- a/arch/arm64/include/asm/mmu_context.h +++ b/arch/arm64/include/asm/mmu_context.h @@ -174,7 +174,6 @@ static inline void cpu_replace_ttbr1(pgd_t *pgdp) * Setting a reserved TTBR0 or EPD0 would work, but it all gets ugly when you * take CPU migration into account. */ -#define destroy_context(mm) do { } while(0) void check_and_switch_context(struct mm_struct *mm, unsigned int cpu); #define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.id, 0); 0; }) @@ -202,6 +201,7 @@ static inline void update_saved_ttbr0(struct task_struct *tsk, } #endif +#define enter_lazy_tlb enter_lazy_tlb static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) { @@ -244,12 +244,11 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, update_saved_ttbr0(tsk, next); } -#define deactivate_mm(tsk,mm) do { } while (0) -#define activate_mm(prev,next) switch_mm(prev, next, current) - void verify_cpu_asid_bits(void); void post_ttbr_update_workaround(void); +#include + #endif /* !__ASSEMBLY__ */ #endif /* !__ASM_MMU_CONTEXT_H */