[PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to lib/

Zhao Qiang qiang.zhao at freescale.com
Thu Jul 9 13:18:18 AEST 2015


> -----Original Message-----

> From: Wood Scott-B07421

> Sent: Thursday, July 09, 2015 2:59 AM

> To: Zhao Qiang-B45475

> Cc: linuxppc-dev at lists.ozlabs.org; Xie Xiaobo-R63061

> Subject: Re: [PATCH 2/2] rheap: move rheap.c from arch/powerpc/lib/ to

> lib/

>

> On Wed, 2015-07-08 at 02:25 -0500, Zhao Qiang-B45475 wrote:

> > So I will add two func for my use, do you think it is ok?

> > I need to align the address of allocated muram.

> > And I will set algo = gen_pool_first_fit_align.

> >

> > +unsigned long gen_pool_alloc_align(struct gen_pool *pool, size_t size,

> > +               unsigned long align)

>

> Again, please explain why you need this for CPM/QE.  I don't see

> rh_alloc_align() currently being used by either.

>

> Also, please stop top-posting.





unsigned long rh_alloc(struct _rh_info *info, int size, const char *owner)

{

        return rh_alloc_align(info, size, info->alignment, owner);

}

EXPORT_SYMBOL_GPL(rh_alloc);



>

> -Scott


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150709/f81d0725/attachment.html>


More information about the Linuxppc-dev mailing list