]> 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>
Mon, 8 Oct 2012 02:59:12 +0000 (13:59 +1100)
commitdbd8a8506d3cc6de35db727c2c9b4b580d4460c2
treee9123143368c963c24394723979c0a6f887218bf
parentbfa76697bd19b48a93b9758ac564ed295a95201a
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