From patchwork Tue Sep 1 14:15:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748289 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 16970138A for ; Tue, 1 Sep 2020 14:17:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D6DF4206CD for ; Tue, 1 Sep 2020 14:17:36 +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="VtIsRogd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D6DF4206CD 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 B5BC9900015; Tue, 1 Sep 2020 10:17:29 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AE2DB90000D; Tue, 1 Sep 2020 10:17:29 -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 9AD72900015; Tue, 1 Sep 2020 10:17:29 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0196.hostedemail.com [216.40.44.196]) by kanga.kvack.org (Postfix) with ESMTP id 7DB6F90000D for ; Tue, 1 Sep 2020 10:17:29 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3A6D7181AEF21 for ; Tue, 1 Sep 2020 14:17:29 +0000 (UTC) X-FDA: 77214695418.05.trip33_040058d27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 9FCB91826B6B5 for ; Tue, 1 Sep 2020 14:17:23 +0000 (UTC) X-Spam-Summary: 1,0,0,b0eff19c2f212fc7,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.214.195:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yfdicgf4ac1g7f3j4et9erw5qttop1aebo746gt41d7ndxj45fos7xthf51mw.hh546ri3atkgg1jb5xgi1b7bzu91ennd8ak5hshnwwbmc8zcuuaxtj5sh1kfnzq.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:25,LUA_SUMMARY:none X-HE-Tag: trip33_040058d27098 X-Filterd-Recvd-Size: 4626 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:09 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id y6so605149plt.3 for ; Tue, 01 Sep 2020 07:16:08 -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=u6Dup+ArfJ1cGNtaPdNiGwIK5zxtRVAfzzcCu/uBGUo=; b=VtIsRogdzz/B4ItJXOYG0iCNVWxRGKUQreNEa3CcflLUskSxARaPoPP2PSbjw18Tkb 9uMw5aOoeqEMnAN3muUKRO6Ufe6NtCgF9KWdYlfKVTAaJYX3WG0tVcL8VEXZBJP7e8Wx Ijz5TwF8bXrHhFkR5Qm2WLFbiR7Z85F7SZhZsztZ+UQlr0YgXcPMxAvDolgs8Q/kUiqq V9Z4zuaJ/2rRZ5wE1tRYEHRvc2Xb+4vU2izP65TQEQK56/rBGIFIIM1YVFkCiKR88pGM T2ZAp2ajUmITAdEl2d+dZGes0KnwDskLcy5mLbYLM6tuSjEg52KFVvelL7TzEFUOvkrM 5ryg== 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=u6Dup+ArfJ1cGNtaPdNiGwIK5zxtRVAfzzcCu/uBGUo=; b=MtRc22YRMXM5DZgyMxen72ps8P9EkLuBZZJYB6XLIVSBVYUZcIWdeKtJan0m6MdYa+ TeFIgYssg/JewJtFGW5vEMt9a69KgFJ0bsdIZDh5RQrd8NJlj5ZbgSmcAefAu3JE/UCX +gSgsjkU5knrCAXLilC/JOVDo/UTAvHqEYZD/jAambEuqpaVQ7GplvlJ1397j5/8CDF+ d3qNxNv45wl6fwycgtHeUeDDDwPx+eyykwfc6BSMfo9cdh1TAuFUONTPK7dY1cd60vJF s3psUVPXvjdNti4xpMUG2nyp+4jNGXR4+dDYj49ESq4oY2uNulQeLq6m475ANGuv+odR Vs8g== X-Gm-Message-State: AOAM530rolpA3yfArO0IKDeyuQInj4vN4sq6DB2VYuZ+2GO2zz0HPEsQ mRxpR5lNuTn3eT5OBmMVlAH/uR5R+0o= X-Google-Smtp-Source: ABdhPJyAinElz1sorI3kdkH6fqTFkR16OPVqZrPUyKnI8QoHoDqnjFXfTtMHJRA7puFOHsWIzJotcg== X-Received: by 2002:a17:90a:c255:: with SMTP id d21mr1859599pjx.212.1598969768315; Tue, 01 Sep 2020 07:16:08 -0700 (PDT) Received: from bobo.ibm.com ([203.185.249.227]) by smtp.gmail.com with ESMTPSA id w9sm2212816pgg.76.2020.09.01.07.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:07 -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 , Will Deacon , linux-arm-kernel@lists.infradead.org, Catalin Marinas Subject: [PATCH v3 05/23] arm64: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:21 +1000 Message-Id: <20200901141539.1757549-6-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200901141539.1757549-1-npiggin@gmail.com> References: <20200901141539.1757549-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 9FCB91826B6B5 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: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Acked-by: Catalin Marinas 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 f2d7537d6f83..fe2862aa1dad 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); #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) { @@ -242,12 +242,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 */