From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DAA2C433E6 for ; Tue, 1 Sep 2020 14:17:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C98AE206EB for ; Tue, 1 Sep 2020 14:17:00 +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="Os1gKBY8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C98AE206EB 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 67BF590000B; Tue, 1 Sep 2020 10:17:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6507D900002; Tue, 1 Sep 2020 10:17:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55E3590000B; Tue, 1 Sep 2020 10:17:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0181.hostedemail.com [216.40.44.181]) by kanga.kvack.org (Postfix) with ESMTP id 06A7B900002 for ; Tue, 1 Sep 2020 10:17:00 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B2EE63636 for ; Tue, 1 Sep 2020 14:16:59 +0000 (UTC) X-FDA: 77214694158.30.pies67_37062bc27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 3CEEF180B45BA for ; Tue, 1 Sep 2020 14:16:46 +0000 (UTC) X-HE-Tag: pies67_37062bc27098 X-Filterd-Recvd-Size: 5297 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:20 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id i10so764036pgk.1 for ; Tue, 01 Sep 2020 07:16:20 -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=FmD6S4VqHjRXcx/+V5HKXlkHBAdRWWNIZL1IhjQV5u0=; b=Os1gKBY83fa3BnKaf2/Fgk8+qHXbsizFP4X+5zkibqdpKESKqO2CxfOAmi3rzOYHE9 Vy0JGM/Mv/4WaF4mgO5D+ynpZZDqC/uI150cLaBW+aebDIZjOIRcxe8TrmaOByhj/lPv cMeOj+VRtfOgnNnztpMePFyY9BNSXZdESlVNAoSuMN2AS20JXT3BgCLrKKPueKJ97z/g sQER9bZ7UXcV2ZWFpj2aEoRBqVY9zK8yM+hswomMc3+qTQ/8XPrNIo7EjbQbceHHHw/O AtYWM+wBVuhixvDMKauTGbbMsdCCwCbKnMvXUL6gwdvjFBQqA2nPzs9P4KzmQUXW5Mfb aErQ== 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=FmD6S4VqHjRXcx/+V5HKXlkHBAdRWWNIZL1IhjQV5u0=; b=YTzyxxyz8+TKfkoxNlbEUF76klvfoKybscF2TrNX6LZMwWHaambxuiNJGoDLyRmSM6 8C0fsDNm8/l4J0Ti3BttudYF6iRD/WRE9kP+qjZwVvaOZOFUsEFfK3SXN9/GJKm3yj8u j8KBWWXrepRYFNOXNMJ2AL963niXFtX2SnTJxgdzFa1vzmfjsG6fDgcdGzZhzZ7g3zm9 8LrxaS6hEjAlsa7LZza+Jx+UbkTjn0J5ozrk2O489m6CyHP6ARmKR0Uysv2oDjMXMDsl Lthcr5irt5arFYjcTzfE9WKzImumw+IGgNRNPWnWjdXBukHB0fnXjk2goB2XYffjYh3w j+Xg== X-Gm-Message-State: AOAM533ME3gn0C1byJPa4UKqLQIKbWUrcu87gRFOjWVsRGREHtFBB9w8 IrVfg8Sm2GuTPTIuL2y6NH3lDHsNWPw= X-Google-Smtp-Source: ABdhPJw2zhJr1rT1/jQq//SJBkZbAVhJfAAF70Rwlclj/9VkgPdZhOkJ0VXXHUfZHxB08QZ5FQ4xcw== X-Received: by 2002:a62:1b4a:: with SMTP id b71mr2067784pfb.235.1598969779641; Tue, 01 Sep 2020 07:16:19 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:19 -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 v3 08/23] ia64: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:24 +1000 Message-Id: <20200901141539.1757549-9-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: 3CEEF180B45BA X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 Content-Transfer-Encoding: quoted-printable 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 --- Please ack or nack if you object to this being mered via Arnd's tree. 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); =20 -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 bec= ause * an old context number might have been reused. This is signalled by th= e @@ -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_s= truct *mm) return 0; } =20 -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 !=3D mm->context)); } =20 -#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) =20 #define switch_mm(prev_mm,next_mm,next_task) activate_mm(prev_mm, next_m= m) =20 +#include + # endif /* ! __ASSEMBLY__ */ #endif /* _ASM_IA64_MMU_CONTEXT_H */ --=20 2.23.0