From patchwork Tue Sep 1 14:15:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748279 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 7F72614E5 for ; Tue, 1 Sep 2020 14:17:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4AA07206EB for ; Tue, 1 Sep 2020 14:17:23 +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="q/L+aoGR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4AA07206EB 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 E8F34900002; Tue, 1 Sep 2020 10:17:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E69C590000D; Tue, 1 Sep 2020 10:17:19 -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 CBB5B900002; Tue, 1 Sep 2020 10:17:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id 8DCFA90000D for ; Tue, 1 Sep 2020 10:17:19 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 45FEF181AEF1F for ; Tue, 1 Sep 2020 14:17:19 +0000 (UTC) X-FDA: 77214694998.17.gate18_0b0eefe27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 9574C1802659B for ; Tue, 1 Sep 2020 14:16:28 +0000 (UTC) X-Spam-Summary: 1,0,0,6eed6046bce4bde6,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.214.194:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yriws6ifiaoyqky639z8sfeuqnzycjk5dxm5wtzms7xejtorybp74i9cyeg3d.uf3siiy3z1dhym7n63a7k8rbducbtp373o6qmfcfj343cpe3ygkru7nb74n8rue.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:26,LUA_SUMMARY:none X-HE-Tag: gate18_0b0eefe27098 X-Filterd-Recvd-Size: 4130 Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:16:12 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id c15so604088plq.4 for ; Tue, 01 Sep 2020 07:16:12 -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=+cGML8t0IrnDZlw59Ro+Eu895qkrrnKIgTl4NIzGBZ4=; b=q/L+aoGRQrWIn3GYU9nuKy9oC2d5bDbHhhRro1r90MDLWrwe1RmfZXOp6jivtRHnQt Pms8OjK6Bmlq936jr8qBCqmyJqZgIXsMxB9QH0VtREPg1O3kn2ActM2ghM7PVDI9Keqh 2eyD0PfIPWXBmuEZ4YIF0wHZjh0znY4x9t6701ZagEU8SZNQSxKIwHogz2hwbcIS9lMm Ifw2lpDuMXSebyFfdrFEpDJ5R854gI85YjQrxyI+gAzVGFlXHYpO3KEEblQUz+KvX/kZ k9vEfLpBosQBSMti5oQIbOSsUuLEeeEvjKD08vTZAWCk/yEfqyfoiLt3a26sK2zzlXbd iwpw== 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=+cGML8t0IrnDZlw59Ro+Eu895qkrrnKIgTl4NIzGBZ4=; b=htzZS+z5xUt7/Ww3+F9whjpOxmSx5keFJDXsQXjxwALnd5Rwzuft7ZA7xhvC7qCkQO 03Ky6R1NOSjtbvyo2lAEZlxi5jPQVJbE2KkWVc4UF1a5SQRf54PwlMPfclJEP+WEdHib OMrCPHXGMCSkHGT+glMSUNpmWfm9sxQPZiGnn7gdgLlXXohdUW3dahhJ1sR8U6MjFTco /cWLy3SRy0KA8OQ/fD4UpCotYWP1uXg7bmg6K1pKstygCykAXw/HZZOcaug+NEp20aVP xJqhbnHs0Xae1Wt0pRnwAJ41gvWNwzh0ct7XusbNjTJQh+qvvjRkkP7dfoC3dI7lh1Gx 65gg== X-Gm-Message-State: AOAM531UvXi4GiZVbCFrX3crPFpShGahgMZl7RNmZvTaIaHtOjULAr6t uDiwA4z7Y8t1yKWnZz26Cn8= X-Google-Smtp-Source: ABdhPJylqMXQGKTlmnPfp26Mn7dao1YgWG7htPyEpONiO22Ggga6Tlf4bzQNnEnK7C93V4kGf7L02Q== X-Received: by 2002:a17:902:323:: with SMTP id 32mr1579212pld.59.1598969772004; Tue, 01 Sep 2020 07:16:12 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:16:11 -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 , linux-csky@vger.kernel.org, Guo Ren Subject: [PATCH v3 06/23] csky: use asm-generic/mmu_context.h for no-op implementations Date: Wed, 2 Sep 2020 00:15:22 +1000 Message-Id: <20200901141539.1757549-7-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: 9574C1802659B 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: linux-csky@vger.kernel.org Acked-by: Guo Ren Signed-off-by: Nicholas Piggin --- 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 */