]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mceusb: Optimize DIV_ROUND_CLOSEST call
authorJean Delvare <khali@linux-fr.org>
Sat, 1 Sep 2012 17:53:57 +0000 (14:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 Sep 2012 15:22:58 +0000 (12:22 -0300)
commit95a131b71cacba3d853f48de10672c25e861f793
treea673bc772c7899466b6be8c39e61bcbe0058c287
parentf157eff11f65f0e96c9cbcc7f82a7f3fcd469ef0
[media] mceusb: 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: Andrew Morton <akpm@linux-foundation.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/mceusb.c