From patchwork Tue Sep 1 14:15:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748265 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 2960B138A for ; Tue, 1 Sep 2020 14:16:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E4FC920FC3 for ; Tue, 1 Sep 2020 14:16:43 +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="n0MN0ALL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4FC920FC3 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 D86C0900008; Tue, 1 Sep 2020 10:16:40 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CBB11900002; Tue, 1 Sep 2020 10:16:40 -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 BD2B1900008; Tue, 1 Sep 2020 10:16:40 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id 9BE18900002 for ; Tue, 1 Sep 2020 10:16:40 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 553872492 for ; Tue, 1 Sep 2020 14:16:40 +0000 (UTC) X-FDA: 77214693360.20.boot82_0d082dd27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id D910C180C0F89 for ; Tue, 1 Sep 2020 14:16:36 +0000 (UTC) X-Spam-Summary: 1,0,0,7de70f82a158edf5,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41: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:2198:2199:2200:2393:2559:2562:3138:3139:3140:3141:3142:3353:3865:3867:4321:4605:5007:6261:6653:7514:7903:9413:9592:10004:11026:11473:11657:11658:11914:12043:12109:12296:12297:12438:12517:12519:12555:12895:12986:13255:13894:14096:14181:14394:14687:14721:21080:21433:21444:21451:21627:21666:21990:30003:30012:30054,0,RBL:209.85.214.195:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04ygkchnrim5rpkp8fsbw4ycx3wegopbauhefykh8bx13r3nrr1f64zha56p3zd.5yei5tgjfhuspusbpcgdj5akaxe5mwfpgj94trbx4sytqhgj8mz6mmuxedojnie.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: boot82_0d082dd27098 X-Filterd-Recvd-Size: 5294 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:27 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id x18so599948pll.6 for ; Tue, 01 Sep 2020 07:16:27 -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=SbWs4d0PATtiP554ptetXUDc8hVLPW+9H9C3/1CDH4M=; b=n0MN0ALLct+cMJ4zTND1afwQYuKwbfUwiewSJrLiyVpFwL8+GJdrsZYlVd9vlXIQYU XTh6Wo3T3+vBUMHVs6idMkldSEmUWED3XGBLQuAS5beYBakuO/CEZWAXWrmlynZz/8iG snPoOWizNmkCw9Xy13QUUXZQFxBWqxFjZCbahHTCHINvBPVil8ID8kctveJmCeqw//tz OjOeKhR8WtmT959HwQLPl0XIwrkYYHftLeQReLB8NIBy8fPLPBqcXrBi2x2vO6TQI3Yi CHfxx1LogDrrjU02t0v5dhyC5w8BzVQbCV1+avHraMeDxs8TKpds3zkRpMNVpQ4PhEYm mf9w== 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=SbWs4d0PATtiP554ptetXUDc8hVLPW+9H9C3/1CDH4M=; b=IPWrq6Ph4THFb+Hdo5VJlBc9MigC2aZYha2dkcsO2z/b0QKCBxpeQoJXlU4+ZQPQjj xoOCiSKhsAIdy+LQsJ5hJ/Maxm/bDMYe4H53D38xe743o00JYhmOQV2osYmUBrYGAUv0 wLhlRoBuefY33NSO2A6GSpKAmbqEyP1bCDR48EXWtGHdMHbD92YFjM51rkrjDcVIrs/h NzNdoCeXq59TVjHP9YGlI7oyjY5Ovi2Qgm+x/jC7/EDHZNl9sjTc8MpheGQ6onJ5WDRC PBauyzhkwdX6yCri8T/k2Fu+a+NTSOOOtNOzP9pD4G9KTOxlukeu67W+kF4UwkxkwA62 Xqvg== X-Gm-Message-State: AOAM531Q6HT3cVNqTOMmaeOHfU8BmO+n3AERohqbCv740fiPLdX+kB6J u/bNtPdiQi9P9mOF28XQpQs= X-Google-Smtp-Source: ABdhPJxqvB1oc8rbYwj5XOvCl1XBMBM5W/etvhoWKaO9X3Q3hghYyipAdTeftKK9fXtdMtV6D0rnyQ== X-Received: by 2002:a17:902:8a8e:: with SMTP id p14mr1587551plo.42.1598969786813; Tue, 01 Sep 2020 07:16:26 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:26 -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 , Michal Simek Subject: [PATCH v3 10/23] microblaze: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:26 +1000 Message-Id: <20200901141539.1757549-11-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: D910C180C0F89 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: Wire asm-generic/mmu_context.h to provide generic empty hooks for arch code simplification. Acked-by: Michal Simek Signed-off-by: Nicholas Piggin --- arch/microblaze/include/asm/mmu_context_mm.h | 8 ++++---- arch/microblaze/include/asm/processor.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microblaze/include/asm/mmu_context_mm.h index a1c7dd48454c..c2c77f708455 100644 --- a/arch/microblaze/include/asm/mmu_context_mm.h +++ b/arch/microblaze/include/asm/mmu_context_mm.h @@ -33,10 +33,6 @@ to represent all kernel pages as shared among all contexts. */ -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) -{ -} - # define NO_CONTEXT 256 # define LAST_CONTEXT 255 # define FIRST_CONTEXT 1 @@ -105,6 +101,7 @@ static inline void get_mmu_context(struct mm_struct *mm) /* * We're finished using the context for an address space. */ +#define destroy_context destroy_context static inline void destroy_context(struct mm_struct *mm) { if (mm->context != NO_CONTEXT) { @@ -126,6 +123,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, * After we have set current->mm to a new value, this activates * the context for the new mm so we see the new mappings. */ +#define activate_mm activate_mm static inline void activate_mm(struct mm_struct *active_mm, struct mm_struct *mm) { @@ -136,5 +134,7 @@ static inline void activate_mm(struct mm_struct *active_mm, extern void mmu_context_init(void); +#include + # endif /* __KERNEL__ */ #endif /* _ASM_MICROBLAZE_MMU_CONTEXT_H */ diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/asm/processor.h index 1ff5a82b76b6..616211871a6e 100644 --- a/arch/microblaze/include/asm/processor.h +++ b/arch/microblaze/include/asm/processor.h @@ -122,9 +122,6 @@ unsigned long get_wchan(struct task_struct *p); # define KSTK_EIP(task) (task_pc(task)) # define KSTK_ESP(task) (task_sp(task)) -/* FIXME */ -# define deactivate_mm(tsk, mm) do { } while (0) - # define STACK_TOP TASK_SIZE # define STACK_TOP_MAX STACK_TOP