]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/tsc: Get rid of custom DIV_ROUND() macro
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 19 Jun 2014 01:58:36 +0000 (03:58 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 20 Jun 2014 05:04:50 +0000 (22:04 -0700)
commit891715793f0451e5114d200be932ac14ce8521a3
treea72b0f4acb5f87762a286453cd5e7d1afda4babc
parent7171511eaec5bf23fb06078f59784a3a0626b38f
x86/tsc: Get rid of custom DIV_ROUND() macro

When invoced for positive values, DIV_ROUND macro defined in
arch/x86/kernel/tsc.c behaves exactly like DIV_ROUND_CLOSEST from
include/linux/kernel.h file, so remove the custom macro in favour
of the shared one.

[ hpa: changed line breaks ]

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Link: http://lkml.kernel.org/r/1403143116-21755-1-git-send-email-mina86@mina86.com
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/tsc.c