On Fri, 2009-04-03 at 18:08 -0700, Keith Packard 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.

Before, I was figuring it was better to have easy code than memory
optimal code in my infrequently-tested workaround.  Since recent notes
about kmalloc limits, I'll switch to using bitmap.h.

-- 
Eric Anholt
e...@anholt.net                         eric.anh...@intel.com


Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to