]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: optimize DIV_ROUND_CLOSEST() call
authorJean Delvare <khali@linux-fr.org>
Tue, 23 Oct 2012 02:50:05 +0000 (13:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Oct 2012 03:20:06 +0000 (14:20 +1100)
commitff93b340b132bf5c0fa18ebba1faab1cf7e94770
treecb9d0a3f92b246eb3fa5941d7a2c3b82cc619d18
parentf4d3fe1b67ed2a9a7a43355f5b9e769655fa1733
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