From patchwork Tue Sep 1 14:15:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748269 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 856EC14E5 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 4E982206EF for ; Tue, 1 Sep 2020 14:17:01 +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 4E982206EF 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) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6507D900002; Tue, 1 Sep 2020 10:17:00 -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 55E3590000B; Tue, 1 Sep 2020 10:17:00 -0400 (EDT) X-Original-To: linux-mm@kvack.org 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-Spam-Summary: 1,0,0,ade79e9fd1fc9546,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:3873:4043:4250:5007:6117:6119:6261:6653:7514:7903:9413:9592:10004:11026:11232: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.196:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yrqk1tg8w48b6njst18oasm4kytocqqbywfsbki3tjbisu3k88hffgiuoocg9.i3o1euuwk83q1oi8x8eyghyhqwrt1c7otgibbzed6zs1wq3wzo5xidnupj9dd1p.a-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:25,LUA_SUMMARY:none 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 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); -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 */