From patchwork Tue Jul 28 03:33:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688019 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 E13B5722 for ; Tue, 28 Jul 2020 03:34:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9D88E207CD for ; Tue, 28 Jul 2020 03:34:44 +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="Vc3Euyrt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D88E207CD 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 AAAB76B000C; Mon, 27 Jul 2020 23:34:43 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A33DA6B000D; Mon, 27 Jul 2020 23:34:43 -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 8ADAC6B000E; Mon, 27 Jul 2020 23:34:43 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0221.hostedemail.com [216.40.44.221]) by kanga.kvack.org (Postfix) with ESMTP id 7665E6B000C for ; Mon, 27 Jul 2020 23:34:43 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3A86B1EE6 for ; Tue, 28 Jul 2020 03:34:43 +0000 (UTC) X-FDA: 77086067646.06.look57_1f03d0b26f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id 097E3100419F7 for ; Tue, 28 Jul 2020 03:34:43 +0000 (UTC) X-Spam-Summary: 1,0,0,1327960533f667db,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1431:1515:1534:1541:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3352:3876:3877:4321:5007:6114:6261:6642: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,0,RBL:209.85.210.193:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yrd36c3dttt7s3378jc9rtnnwxnop1ebj9kqya9ms7xejtorybp74i9cyeg3d.uf3siiy3z1dhym7dhaw3wxpbhmcbtp373o6qmfcfj343cpe3ygkru7nb74n8rue.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:24,LUA_SUMMARY:none X-HE-Tag: look57_1f03d0b26f66 X-Filterd-Recvd-Size: 4155 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by imf36.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:34:42 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id r11so2282917pfl.11 for ; Mon, 27 Jul 2020 20:34:42 -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=0CJ5pLUNj5CNYiJwzkvMW2lqb7Q/oa/023gCjAl7Yjo=; b=Vc3EuyrtZlTxBVYXaWLv4HsOBpE/JC48K5IOkbUrzdd1iuoTif1YkuuIkaxDOly59V 141KydHb6s1o11WJolYISeqKXd2TVmTgB1OoU24xAQjETivwJWCCcP6XWhJyZMSOuuGO X0hG6b+9gV5qqgl4Wk1CE3lZiTQTT3EaSLFgG1X61P/T5J2Ea3kuYyygTDlgyQt3gGLD 7v2q4qyUeCNBQMAfSEU0mSO0W0WP+OpjeuM6szp63gXLI/iyCNVH/zNuF+xIXRv9IRN5 G20TbqJ2sxbepnQI1zVm4PTwSO/LWJd3QhIv9TEwC21BtlZ2F5UZzxHAvXW2tlx1s0On BPgA== 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=0CJ5pLUNj5CNYiJwzkvMW2lqb7Q/oa/023gCjAl7Yjo=; b=FnSUUaLhOBTlFlVvI84Fpv7R7Rn+5GhV603V/KunItD6sfvpkyyPc9px52UTmFVAWl kajjFFtA3uMG37BgyLBQKZE8mgyXajj9a9dySYSIjeDy5Ofp8J/cScrsDpHNKsomKYTF l3H4qDLAp0SxgPrVBk+5GlCBxAglxp6KXBWaqLrJRiQnuHhBErPsrr7vZAvAbHv9zYyC hAxegWfkW7aBIgRXkk/ZS4pjPZ899kPQSpPT1sYg+VmTnsEG+pxMlcz+vmxNYmoU7xhX oyikrJ3K0XD1NJETEwcK/cTVFKJSnUIsUEYOCwfzLOF4bZEpqQSJsQeMD7p0yHefvEFB WpVg== X-Gm-Message-State: AOAM53199DZg8e6l9cJQsUFIEb69HD43V+44I8IaiK1H/rtAAMvVBFmx iQ8Z9tUQ8OmlTOyj/28T/k8= X-Google-Smtp-Source: ABdhPJwlYuThuwrcQ4rOZSpcW7L1u70L9KCqBU3RF2TC1IQonzCv4DT+AGzLtfUsDAICSgXhJXLo/A== X-Received: by 2002:a05:6a00:224f:: with SMTP id i15mr23996525pfu.241.1595907281973; Mon, 27 Jul 2020 20:34:41 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:41 -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 , Guo Ren , linux-csky@vger.kernel.org Subject: [PATCH 06/24] csky: use asm-generic/mmu_context.h for no-op implementations Date: Tue, 28 Jul 2020 13:33:47 +1000 Message-Id: <20200728033405.78469-7-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: 097E3100419F7 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: Guo Ren Cc: linux-csky@vger.kernel.org Signed-off-by: Nicholas Piggin Acked-by: Guo Ren --- arch/csky/include/asm/mmu_context.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/csky/include/asm/mmu_context.h b/arch/csky/include/asm/mmu_context.h index abdf1f1cb6ec..b227d29393a8 100644 --- a/arch/csky/include/asm/mmu_context.h +++ b/arch/csky/include/asm/mmu_context.h @@ -24,11 +24,6 @@ #define cpu_asid(mm) (atomic64_read(&mm->context.asid) & ASID_MASK) #define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.asid, 0); 0; }) -#define activate_mm(prev,next) switch_mm(prev, next, current) - -#define destroy_context(mm) do {} while (0) -#define enter_lazy_tlb(mm, tsk) do {} while (0) -#define deactivate_mm(tsk, mm) do {} while (0) void check_and_switch_context(struct mm_struct *mm, unsigned int cpu); @@ -46,4 +41,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, flush_icache_deferred(next); } + +#include + #endif /* __ASM_CSKY_MMU_CONTEXT_H */