Message ID | 20200826145249.745432-7-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=dJX+=CE=kvack.org=owner-linux-mm@kernel.org> 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 016E3722 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 26 Aug 2020 14:53:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C1EF52177B for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 26 Aug 2020 14:53:29 +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="BspJF27Q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1EF52177B 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 CDE7A6B0023; Wed, 26 Aug 2020 10:53:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C3F656B0024; Wed, 26 Aug 2020 10:53:27 -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 A6B306B0025; Wed, 26 Aug 2020 10:53:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0038.hostedemail.com [216.40.44.38]) by kanga.kvack.org (Postfix) with ESMTP id 925606B0023 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 10:53:27 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3C2CF2485 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:53:27 +0000 (UTC) X-FDA: 77193013254.29.pig64_41073f227065 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 078FF18086E29 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:53:22 +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.195:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04ygdeznx575n7a8wnx7z4xj8up3pocjk5dxm5wtzms7xejtorybp74i9cyeg3d.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:45,LUA_SUMMARY:none X-HE-Tag: pig64_41073f227065 X-Filterd-Recvd-Size: 4171 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by imf42.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Wed, 26 Aug 2020 14:53:21 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id c15so1005878plq.4 for <linux-mm@kvack.org>; Wed, 26 Aug 2020 07:53:21 -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=BspJF27QzbuQjjnvh+8w6iecMZp5YbD25ThpZed/PjkuGD6GJvNJ4CklxEb1ZrezDD yk7s2seci6BRkj6H0vXEDr6p6ouZWNefLvEUcER0Z4lbgqk4M/tISZl+Kg6lcDH1zm+J dODpaFi3JOrWQzVtm3giyP3xjFO0Q9RPJw6tbXqRFwPu8Rha7iWP7EMpxCXvA9A2Pudh LFalYZ8dqFGjPwLvve/KBiUZ279dPkB5bmL73P29fzrf4shaLvAf/hqdJdEXWajkCXAh G9VNfPz9scpQmioUtHRYPoxw2WqTtHJsSoUKxg7E5fzt5qBmZ91++UgqsvHT0OXrZyzO nCyg== 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=VVNN/rZASrCxiQQDL/xIk7aUt5/y9f8R+S//aA5KNdsUnocjZEc14+3uQsaXVaMMV1 eyLyPh7H4O24nQCXQbWlUt5DYqcIsNvWEYYVByuUH8MryFHql5ihjFvgFENr+2r22JnV Eldw7DswpPOw3zTD648i4HjOpMeFRqAAsEMmQ51UkenauX7hMxyCNAfSN+GKweAti4GB 4qSj1myhrpsjF8GhoZlg2vcXmmUyT+jcgB3Qg1K5mjTX66w7YWFgu+WwnnoTLAD4TO81 +Nvu+R5ZnUxslPdTdItvPTnC0VvQGSKZsh1oZOmojLPbtpmsfafltLCbmfjhSlQVKEZU bfxw== X-Gm-Message-State: AOAM532uxhGSK79vOZvBTJVesO1NLLGKIQe+SZPOiypOE8s/5Sxt2EmZ 0RGV5KAcYBMV8009DrfCXjb7UQZ6IHc= X-Google-Smtp-Source: ABdhPJzsbZy6isz4fHT5ReTyRXlVh220hAC0FejIMuKzxdA9ukIYV2V/k8A2gJ++hFMUoDTndc1d1w== X-Received: by 2002:a17:90a:7b82:: with SMTP id z2mr6216692pjc.106.1598453600691; Wed, 26 Aug 2020 07:53:20 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-212-105.tpgi.com.au. [61.68.212.105]) by smtp.gmail.com with ESMTPSA id r7sm3327140pfl.186.2020.08.26.07.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:53:20 -0700 (PDT) From: Nicholas Piggin <npiggin@gmail.com> To: linux-arch@vger.kernel.org Cc: Nicholas Piggin <npiggin@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann <arnd@arndb.de>, linux-csky@vger.kernel.org, Guo Ren <guoren@kernel.org> Subject: [PATCH v2 06/23] csky: use asm-generic/mmu_context.h for no-op implementations Date: Thu, 27 Aug 2020 00:52:32 +1000 Message-Id: <20200826145249.745432-7-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200826145249.745432-1-npiggin@gmail.com> References: <20200826145249.745432-1-npiggin@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 078FF18086E29 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 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: <linux-mm.kvack.org> |
Series |
Use asm-generic for mmu_context no-op functions
|
expand
|
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 <asm-generic/mmu_context.h> + #endif /* __ASM_CSKY_MMU_CONTEXT_H */