From: Pekka Paalanen Date: Sun, 16 Aug 2009 22:18:38 +0000 (+0300) Subject: drm/ttm: optimize bo_kmap_type values X-Git-Tag: v2.6.32-rc1~52^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0724fcf829e5afb66159ef68cb16a805ea11b42;p=pandora-kernel.git drm/ttm: optimize bo_kmap_type values A micro-optimization on the function ttm_kmap_obj_virtual(). By defining the values of enum ttm_bo_kmap_obj::bo_kmap_type to have a bit indicating iomem, size of the function ttm_kmap_obj_virtual() will be reduced by 16 bytes on x86_64 (gcc 4.1.2). ttm_kmap_obj_virtual() may be heavily used, when buffer objects are accessed via wrappers, that work for both kinds of memory addresses: iomem cookies and kernel virtual. Signed-off-by: Pekka Paalanen Signed-off-by: Dave Airlie --- Reading git-diff-tree failed