Message ID | 20240125193227.444072-4-david@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A7FEC47258 for <linux-mm@archiver.kernel.org>; Thu, 25 Jan 2024 19:33:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9937B280009; Thu, 25 Jan 2024 14:33:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 943A4280004; Thu, 25 Jan 2024 14:33:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BC73280009; Thu, 25 Jan 2024 14:33:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6A9AE280004 for <linux-mm@kvack.org>; Thu, 25 Jan 2024 14:33:01 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4764E404CD for <linux-mm@kvack.org>; Thu, 25 Jan 2024 19:33:01 +0000 (UTC) X-FDA: 81718831362.16.13716F2 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf24.hostedemail.com (Postfix) with ESMTP id 95F5718000F for <linux-mm@kvack.org>; Thu, 25 Jan 2024 19:32:59 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Jun5ephJ; spf=pass (imf24.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706211179; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yJs+mcURKSPmR1cOyRG5Auy6AFvJQWxP76HaETvMI0g=; b=7MJZcA4DDgsboMqpjdzDkbQ/XCgpf0qxR5f3eRmlhtYnBWcfzfHa8qxk1SKU5NUcVMBG+Q CZcPOXxZhmwXHl4mQXyaNrQfxrM97ApuCdMpMBea3MTInWSbk/Edu8U8ur3VrH6cq6QyNp F1Uuyl/hAqav+rsKlS9x8+BC6GER4pQ= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Jun5ephJ; spf=pass (imf24.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706211179; a=rsa-sha256; cv=none; b=sfF1a/3mx3Sa6oDCJz+mX2v26OxSu+OvFaCBWruIdpnAGaIYwpmxrydbtMfcIreKQ0NEdP FNUFtS0AjRu608+a2YCQiIaavJ9HN+EnP0zY6ozMGfaLmGCa4eM41lheTcU/riZgQT3QlA 8N+1h/3/P82uKrFOZpjhiBl58bG/vOk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706211178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yJs+mcURKSPmR1cOyRG5Auy6AFvJQWxP76HaETvMI0g=; b=Jun5ephJIUUfTvzQvGMGjJfc+19qoVhRGTInnwC+l/WkDyC3+9IV8qC+HlhhJum7AAf3jo 0IQVm8vIGrnJQHnOBM5490sjWfyPeWQF0IaMVvAsgwNXVpisO3+ndHh6puPN7+pBZKQ3ar bwP4CX9oSTMVjofRkTXiyRmzNzWaKaQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-439-7NVfgMTTPOWOAzUG4yyD5g-1; Thu, 25 Jan 2024 14:32:57 -0500 X-MC-Unique: 7NVfgMTTPOWOAzUG4yyD5g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 111D93C025C9; Thu, 25 Jan 2024 19:32:53 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 359AB492BC6; Thu, 25 Jan 2024 19:32:46 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Ryan Roberts <ryan.roberts@arm.com>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexander Gordeev <agordeev@linux.ibm.com>, Gerald Schaefer <gerald.schaefer@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, "David S. Miller" <davem@davemloft.net>, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH v2 03/15] nios2/pgtable: define PFN_PTE_SHIFT Date: Thu, 25 Jan 2024 20:32:15 +0100 Message-ID: <20240125193227.444072-4-david@redhat.com> In-Reply-To: <20240125193227.444072-1-david@redhat.com> References: <20240125193227.444072-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Rspamd-Queue-Id: 95F5718000F X-Rspam-User: X-Stat-Signature: cgqpxhmn1k4d8iy5w6jaqsbborcnx9d3 X-Rspamd-Server: rspam01 X-HE-Tag: 1706211179-783950 X-HE-Meta: U2FsdGVkX19H++G1S6FM7cFWZ6WA3BzacfoA6azjqQmmQkJterzsB8/xFN/huIyjAfx8vezCYtMAIuEfxdTl+8yhcMGiXc+047QLNgSEO5SMTrKqCmDwHVIh6hpu9O0qvzhr8+Hi3eKzTrXZ11NFlQtFF/Ych8dK4+jf8sqT5LVocAWQa3Gt5KjswfTsFRsBgx7pqC40z43OnH2Sq4VgIbYHnnbsNO/nISwTjV11SQTav4Dk6ZAlFTyoc3bE/F5EUDW9uGtRr/Tmz9DPbeGZhrtLXK8iXRQv2Ped1ovJJSE6wt8trvJyTUshXUeNmkZpv1b74pVOtLgvXNVLyQXKpMKlH7rTxsfetoj8bqyeEF4zIoemwpQMZfdB7OtHutdyGFkHpGhIiW7LqITimFNtPPJcNgPoEG5A2De00+IhaWrIXSPc6JsFYYxDHvsOTHIwMik8YexZHkeosMIiQkc4EBKp8xbi0YWWwHdmDZlBpPpSTh2nvoJJIKOLSmSnrxFdQzIF8h5BnyLE79vk2LCWIFcb48z/fHWAy00hOjHN3ss9uJ0PRaQ7f0oFNMlpLD0leK1+NMtaVlYSMy01U8mLa1T3nGV4o0oY7b14X3dmxW+h/1Hh27lNsLMffQTyJMIan4xFgGBGQbHhoMEokxn2mnIG0NReEHzOB6PWHDZsxqFiuKMtbDlGdPSVHAuwAOTlIU+N9OHe0q7j5Hh7OxdOmqbv3YSCOzr2nhlnNkr2CNHLzdg6asSOfARIQSugVMk0SOBPsDRa+M5aQQiml+A0YV+ggG92sHGItag0n5KGXShoXIOGOdVFJc7UT1fUg3lwNQK+zs10PsMV0HXlKE9SDFZ1yAINAffAo+CxAjPElgZ/JEOWvX3ot5FfkbQ3E6n3QspGG0MCDODlNzFM+sdn+gAUM80RjAV7fjrq9kLoVXP4Golg6UD3XIzIMgPLv4F4kxnBseMBHHnaQsS1HLF tzvnuYq9 y8rrXYVmdVahDTp9NJHVVqA5/MdwNar6LRyEuNMBPwWmnNCSQw9hxmwP1G8NpO7x9T9e9rY4Gy59eBFdRYGGgRIduuQxdXtuG11AxfNVhoTSLp0cgN15UWqtiq94iwuAtTCjD5Hz1WrhVj3ht80Vi8fedwz6M1etBgbxK4lk1w540OCPUyzBkxi8GLgDCTzDVFHIJSagnJLb4IQoFNNOusk/n8UKehxsCpXfd 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/memory: optimize fork() with PTE-mapped THP
|
expand
|
diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h index 5144506dfa693..d052dfcbe8d3a 100644 --- a/arch/nios2/include/asm/pgtable.h +++ b/arch/nios2/include/asm/pgtable.h @@ -178,6 +178,8 @@ static inline void set_pte(pte_t *ptep, pte_t pteval) *ptep = pteval; } +#define PFN_PTE_SHIFT 0 + static inline void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte, unsigned int nr) {
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/nios2/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+)