From: Eric Anholt Date: Sun, 22 Nov 2009 02:49:37 +0000 (+0100) Subject: drm/i915: Replace a calloc followed by copying data over it with malloc. X-Git-Tag: v2.6.33-rc1~323^2~5^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e0f93a381d1d76135e567f13a4418fce66fd95;p=pandora-kernel.git drm/i915: Replace a calloc followed by copying data over it with malloc. Execbufs involve quite a bit of payload, to the extent that cache misses show up in the profiles here, and a suspicion that some of those cachelines may get evicted and then reloaded in the subsequent copy. This is still abstracted like drm_calloc_large since we want to check for size overflow, and because we want to choose between kmalloc and vmalloc on the fly. cairo's interface for malloc-with-calloc's-args was used as the model. Signed-off-by: Eric Anholt --- Reading git-diff-tree failed