Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1316212

Re: [kernel] powerpc: Make vmalloc_to_phys() public

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [kernel] powerpc: Make vmalloc_to_phys() public
Date Mon, 25 Jan 2016 06:50:02 +0100
Message-ID <qUIci-7Me-3@gated-at.bofh.it> (permalink)
References <qTi0x-20y-1@gated-at.bofh.it>
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 15
Organization linux.* mail to news gateway
X-Original-Cc Alexey Kardashevskiy <aik@ozlabs.ru>, Paul Mackerras <paulus@samba.org>, linux-kernel@vger.kernel.org
X-Original-Date Mon, 25 Jan 2016 16:46:03 +1100 (AEDT)
X-Original-Message-ID <20160125054603.5D55B140326@ozlabs.org>
X-Original-References <1453361708-19422-1-git-send-email-aik@ozlabs.ru>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1316212

Show key headers only | View raw


On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote:
> This makes vmalloc_to_phys() public as there will be another user
> (in-kernel VFIO acceleration) for it soon.
> 
> As a part of future little optimization, this changes the helper to call
> vmalloc_to_pfn() instead of vmalloc_to_page() as the size of the
> struct page may not be power-of-two aligned which will make gcc use
> multiply instructions instead of shifts.

You should also mention why you need to export it, presumably because whatever
new user you have in mind can be built as a module.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>

cheers

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH kernel] powerpc: Make vmalloc_to_phys() public Alexey Kardashevskiy <aik@ozlabs.ru> - 2016-01-21 08:40 +0100
  Re: [kernel] powerpc: Make vmalloc_to_phys() public Michael Ellerman <mpe@ellerman.id.au> - 2016-01-25 06:50 +0100
    Re: [kernel] powerpc: Make vmalloc_to_phys() public Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2016-01-25 07:30 +0100
    Re: [kernel] powerpc: Make vmalloc_to_phys() public Paul Mackerras <paulus@ozlabs.org> - 2016-01-25 11:10 +0100
      Re: [kernel] powerpc: Make vmalloc_to_phys() public Alexey Kardashevskiy <aik@ozlabs.ru> - 2016-01-27 04:30 +0100

csiph-web