From patchwork Tue Jul 28 03:33:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688029 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 779CE913 for ; Tue, 28 Jul 2020 03:35:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 42FCC206D4 for ; Tue, 28 Jul 2020 03:35:03 +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="R59x4WUX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42FCC206D4 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 1AAD96B0023; Mon, 27 Jul 2020 23:35:02 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 133D26B0024; Mon, 27 Jul 2020 23:35:02 -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 F3CBF6B0025; Mon, 27 Jul 2020 23:35:01 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0106.hostedemail.com [216.40.44.106]) by kanga.kvack.org (Postfix) with ESMTP id DE5FB6B0023 for ; Mon, 27 Jul 2020 23:35:01 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A1F66181AC9B6 for ; Tue, 28 Jul 2020 03:35:01 +0000 (UTC) X-FDA: 77086068402.14.cap47_26151aa26f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 672EE1822987A for ; Tue, 28 Jul 2020 03:35:01 +0000 (UTC) X-Spam-Summary: 1,0,0,e66fcd31326d776c,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:3138:3139:3140:3141:3142:3352:3865:3867:3871:3874:4321: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:21451:21627:21666:30054:30075,0,RBL:209.85.216.67:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yr3oc8iz9mscgnk4dth9po1z49jopnoa6a14318c98o3ooq8ziah3y9faxzp6.anznit1z46ayx4e179rhwhgugpqu7hff4z89ip8rpc1sm48p38df7m4kmfj7ncj.4-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:26,LUA_SUMMARY:none X-HE-Tag: cap47_26151aa26f66 X-Filterd-Recvd-Size: 4945 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:35:00 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id lw1so2096114pjb.1 for ; Mon, 27 Jul 2020 20:35:00 -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=TiWkNEwCCC0m6okc9WhV7jiLYdcUc3FOzWjygUNhbfY=; b=R59x4WUX1ge7CJHjp7PrxGdP+hoQajod9t8NFjvLRVLvs1peTEITeF3Gp27+jITFY6 GQoi9/EQoCPfOnxLXkP60QFfYCWSUEk3eTkXFQDG4Xguo7gH94G/37wS49eJT7z+YrCB t+RbWg7MuO/Y/4E7YJoEiKhWZZeXAH0Qe9n5b5qfzTJCR04vvxQi6Go4PeF2Jjhqg4Xh 17wdDPEF5ZtwdcKNb8nZb/v5B5Lf+XnKAQAzkxZI33zWGNV6HYMtiXt9O9x6JmS7FN92 eLf5M3eUdmffl7AUPxZUBULkdVbqsd2wMnbu7a2v9vLL3TyoTRtKsQXPZ5cfBIxmBlRR fgaw== 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=TiWkNEwCCC0m6okc9WhV7jiLYdcUc3FOzWjygUNhbfY=; b=brRHymHVJ9UoAec+51r0SZu5VezzAvhXQpKCANfsyPFGbbMg9NuQW2UMpfLKhBuyfJ p5xrXndHmnpjTM9e12mAZRWJVZ6y1ClWTV9E5w9GF1mdve8H92uaJss1ZbgADmEWnugk u2UDp7dAtdpYKao7IY1KaTqoQb1Bp+XMRghuMjK81Z88XoEN4//xX2UIYe9LCNxb1I4a p+Dg1C46OGtS3JkuIN/3c0BYvObBWl+KClyXjodgiLPcrq4fr6giKyICGXrmAIB3gCLd llwYVmtibd+rvAlPd3n+ks3bocSGJKk4JwuIA2XHG3kz3EsdrCJPvk9as58XhCHRGg93 JXuw== X-Gm-Message-State: AOAM531PFyrtYe9JVAunOky5aPEnQLIrkAR6ct/dmyaXiCIuXMaVbB7Q dTkap9aOvkgYuhoILqweEfs= X-Google-Smtp-Source: ABdhPJxRYhI8/MsagOMafo1pS6zstDzKFOU2r074Wy/70Oqrct466kgOSbiaCGCHCixCD0dMGIKZ1Q== X-Received: by 2002:a17:902:b60d:: with SMTP id b13mr10131584pls.48.1595907300090; Mon, 27 Jul 2020 20:35:00 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:59 -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 , Thomas Bogendoerfer , linux-mips@vger.kernel.org Subject: [PATCH 11/24] mips: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:52 +1000 Message-Id: <20200728033405.78469-12-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: 672EE1822987A 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: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/mips/include/asm/mmu_context.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/mips/include/asm/mmu_context.h b/arch/mips/include/asm/mmu_context.h index cddead91acd4..ed9f2d748f63 100644 --- a/arch/mips/include/asm/mmu_context.h +++ b/arch/mips/include/asm/mmu_context.h @@ -124,10 +124,6 @@ static inline void set_cpu_context(unsigned int cpu, #define cpu_asid(cpu, mm) \ (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu])) -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - extern void get_new_mmu_context(struct mm_struct *mm); extern void check_mmu_context(struct mm_struct *mm); extern void check_switch_mmu_context(struct mm_struct *mm); @@ -136,6 +132,7 @@ extern void check_switch_mmu_context(struct mm_struct *mm); * Initialize the context related info for a new mm_struct * instance. */ +#define init_new_context init_new_context static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { @@ -180,14 +177,12 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, * Destroy context related info for an mm_struct that is about * to be put to rest. */ +#define destroy_context destroy_context static inline void destroy_context(struct mm_struct *mm) { dsemul_mm_cleanup(mm); } -#define activate_mm(prev, next) switch_mm(prev, next, current) -#define deactivate_mm(tsk, mm) do { } while (0) - static inline void drop_mmu_context(struct mm_struct *mm) { @@ -237,4 +232,6 @@ drop_mmu_context(struct mm_struct *mm) local_irq_restore(flags); } +#include + #endif /* _ASM_MMU_CONTEXT_H */