]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: optimize DIV_ROUND_CLOSEST() call
authorJean Delvare <khali@linux-fr.org>
Thu, 25 Oct 2012 01:14:41 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 29 Oct 2012 03:17:17 +0000 (14:17 +1100)
commit098ee7c3f35751917a99a425bb4c42ef97d152db
tree3bb2a410a7a00a8d71f55bbcacb654a129266b35
parent060fe189c7f1fdec1757bba7c05f4fb6358d8ca8
drm/i915: optimize DIV_ROUND_CLOSEST() call

DIV_ROUND_CLOSEST is faster if the compiler knows it will only be dealing
with unsigned dividends.

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