From: Scott Wood Date: Wed, 05 Oct 2011 19:53:53 +0000 Subject: Re: [PATCH] KVM: PPC: E500: Support hugetlbfs Message-Id: <4E8CB5D1.1050701@freescale.com> List-Id: References: <1317825450-605-1-git-send-email-agraf@suse.de> <4E8C8073.8080306@freescale.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, B13201@freescale.com On 10/05/2011 01:55 PM, Alexander Graf wrote: > > On 05.10.2011, at 18:06, Scott Wood wrote: > >> Any reason for __ilog2() rather than ilog2()? Shouldn't make a >> difference, just curious about avoiding the public interface. > > I grep'ed through the kernel tree and only found __ilog2 defined as well as mostly users for __ilog2, so I figured there's got to be a reason ;) ilog2() is defined in include/linux/ilog2.h. It produces constant output if the input is constant, and appears to be the "front door" to __ilog2_u32/__ilog2_u64. Plain __ilog2 is older and powerpc-specific, which is probably why there are more users of that in arch/powerpc. -Scott