On Fri, 03 Apr 2009 18:08:14 -0700
Keith Packard <kei...@keithp.com> wrote:

> On Fri, 2009-04-03 at 17:03 -0700, Eric Anholt wrote:
> 
> > +           obj_priv->bit_17 = kmalloc(page_count, GFP_KERNEL);
> 
> seems like you could save a bit of memory here by using 1 bit per page
> instead of a byte.
> 

If you choose to go that route there are a bunch of bitmap handling
routines in <linux/bitmap.h>.

-- 
Jesse Barnes, Intel Open Source Technology Center

------------------------------------------------------------------------------
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to