]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Optimize DIV_ROUND_CLOSEST call
authorJean Delvare <khali@linux-fr.org>
Mon, 12 Nov 2012 13:18:02 +0000 (14:18 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:44:59 +0000 (17:44 +0100)
commit973c807997f45f6c703dfe941d5e43ce48d464e1
treec145ff192b00236d12559eaab4e720a666ded70d
parent0fdebb1fc2bde11f7b99266feae840f68c8589df
drm/i915: Optimize DIV_ROUND_CLOSEST call

DIV_ROUND_CLOSEST is faster if the compiler knows it will only be
dealing with unsigned dividends. This optimization rips 32 bytes of
binary code on x86_64.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c