]> 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, 10 Oct 2012 03:56:27 +0000 (14:56 +1100)
commitc1b3b9b3fa9910918d9eb83a876ca283ce96bfbd
treed8b74bd7f2889d7839d68ba548dc04c4ce2a6cc1
parent5efd2fb383d761052077cfeca73e33e960df599f
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