From patchwork Tue Jul 28 03:33:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688023 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 83FE9912 for ; Tue, 28 Jul 2020 03:34:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4F82C206D4 for ; Tue, 28 Jul 2020 03:34:52 +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="q8pGv5BV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F82C206D4 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 3F39A6B000E; Mon, 27 Jul 2020 23:34:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 380926B0010; Mon, 27 Jul 2020 23:34:51 -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 1F6AD6B0022; Mon, 27 Jul 2020 23:34:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 077266B000E for ; Mon, 27 Jul 2020 23:34:51 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C8341180AD815 for ; Tue, 28 Jul 2020 03:34:50 +0000 (UTC) X-FDA: 77086067940.12.joke85_450588726f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 957191800BD17 for ; Tue, 28 Jul 2020 03:34:50 +0000 (UTC) X-Spam-Summary: 1,0,0,eb62fbfbeae5d759,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1437:1515:1535:1542:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3867:3871:4043:4250:5007:6117:6119:6261:6653:7514:7903:9413:9592:10004:11026:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:13894:14096:14181:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30003:30034:30054:30064,0,RBL:209.85.215.194:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04ygdoqpo14xi9uphaupy88spfi5fycqqbywfsbki3tjbisu3kdcczimw6qacg9.i3o1eu1h3mejcwzisojufzr1xrrt1c7otgibbzed6zs1wq3wzo5xidn4bgioejs.k-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:31,LUA_SUMMARY:none X-HE-Tag: joke85_450588726f66 X-Filterd-Recvd-Size: 5244 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:34:50 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id w2so11096675pgg.10 for ; Mon, 27 Jul 2020 20:34:50 -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=Qg+y9mENI5s/3Hp67w0VaPORZ5hguo4wpnU/9+nxop0=; b=q8pGv5BVNDYKDeE5Q1H62HjmQ29s5vTWRt1bs9tEywFk7P2jILZZXZj8dhK+A6bNYl 8RfDO1oURPA1Btq8/J3eK/cYo5wE58mnRy8b8DKaW2QLg6yi7EvWWbnQdfpOIMCQPi8U U/Wck2kQWzSKrHdiOAWxZpK6F3MSgeRSwxDh/MLTdiYW1YzoDlKf0pp3pOit8W1WSG7z XaxDc+A58BSmoqCWAMghjddlMJFmS86yeetQJb9oX6FwgCXm4vkKyGGa8XYX6bhWSAYL 1m7dnzjr8UpeWd+a6aZsdXxiyey8d3NLcxPP1vijokqj0BEspe4gAFC6ey5EIW+H+wtP Aalg== 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=Qg+y9mENI5s/3Hp67w0VaPORZ5hguo4wpnU/9+nxop0=; b=PCClEbxANBJhYfvRM9TExkGm0uxsvAWhbQPGYRwY2QmBHot+rPJoTLqrHlGH0OmlBU xnHKV5EJlwbkKwCE052Cvl/941DrDFa4veEl8thU6zXXhBzVBL4B0/vqoW82DvEEWrEN ddowVB4HaPisRWimfivqX6IahWW2d5MdbwTuJTBKXMMPaljI0RhXLdSil5ISnFG0aPcP Jlk/pIjOkz96KwSigea3V6vHJUCzNAtiKNuRRrCB289ku7wbzbF1Kb2AkDHnirWYzneS 6Sc4xri6+JAZndQpVa/rRZjJWjl9BBvAHe0cR13I9YV5mCi3w8y11H91Cvav7orzbdOg uJZQ== X-Gm-Message-State: AOAM533cr1iCPBKaoBX7lTCTLCrn/KjlOALHaa+qa5z+YkwA5m9anjT9 mI9Tyotsnhvk9MT18IqUbZrgqwHo X-Google-Smtp-Source: ABdhPJyegue1Y71ByKLFRmuTiOaLWPUs+XfPg2h9VkUzZQTnWzkiHGsmGDR8fjYjovJnS9bGyvA9UA== X-Received: by 2002:a63:d951:: with SMTP id e17mr22284647pgj.318.1595907289567; Mon, 27 Jul 2020 20:34:49 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:49 -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 , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org Subject: [PATCH 08/24] ia64: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:49 +1000 Message-Id: <20200728033405.78469-9-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: 957191800BD17 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: Tony Luck Cc: Fenghua Yu Cc: linux-ia64@vger.kernel.org Signed-off-by: Nicholas Piggin --- arch/ia64/include/asm/mmu_context.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/arch/ia64/include/asm/mmu_context.h b/arch/ia64/include/asm/mmu_context.h index 2da0e2eb036b..87a0d5bc11ef 100644 --- a/arch/ia64/include/asm/mmu_context.h +++ b/arch/ia64/include/asm/mmu_context.h @@ -49,11 +49,6 @@ DECLARE_PER_CPU(u8, ia64_need_tlb_flush); extern void mmu_context_init (void); extern void wrap_mmu_context (struct mm_struct *mm); -static inline void -enter_lazy_tlb (struct mm_struct *mm, struct task_struct *tsk) -{ -} - /* * When the context counter wraps around all TLBs need to be flushed because * an old context number might have been reused. This is signalled by the @@ -116,6 +111,7 @@ get_mmu_context (struct mm_struct *mm) * Initialize context number to some sane value. MM is guaranteed to be a * brand-new address-space, so no TLB flushing is needed, ever. */ +#define init_new_context init_new_context static inline int init_new_context (struct task_struct *p, struct mm_struct *mm) { @@ -123,12 +119,6 @@ init_new_context (struct task_struct *p, struct mm_struct *mm) return 0; } -static inline void -destroy_context (struct mm_struct *mm) -{ - /* Nothing to do. */ -} - static inline void reload_context (nv_mm_context_t context) { @@ -178,11 +168,10 @@ activate_context (struct mm_struct *mm) } while (unlikely(context != mm->context)); } -#define deactivate_mm(tsk,mm) do { } while (0) - /* * Switch from address space PREV to address space NEXT. */ +#define activate_mm activate_mm static inline void activate_mm (struct mm_struct *prev, struct mm_struct *next) { @@ -196,5 +185,7 @@ activate_mm (struct mm_struct *prev, struct mm_struct *next) #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_mm) +#include + # endif /* ! __ASSEMBLY__ */ #endif /* _ASM_IA64_MMU_CONTEXT_H */