]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: optimize DIV_ROUND_CLOSEST() call
authorJean Delvare <khali@linux-fr.org>
Fri, 28 Sep 2012 00:18:54 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:46:38 +0000 (16:46 +1000)
commitf4e44e5bcce580863cf12369f406223c458e5801
tree833d39724ef0364707d2d4e293e66d48377fb356
parentb78aef9ab107c1b2f940acc8eb45cd93779a4a8c
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