Re: [PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-23 Thread Peter Zijlstra
On Thu, Jun 19, 2014 at 03:58:36AM +0200, Michal Nazarewicz wrote: > 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. See, I

Re: [PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-23 Thread Peter Zijlstra
On Thu, Jun 19, 2014 at 03:58:36AM +0200, Michal Nazarewicz wrote: 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. See, I knew

Re: [PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-18 Thread David Rientjes
On Thu, 19 Jun 2014, Michal Nazarewicz wrote: > 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. > > Signed-off-by: Michal

[PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-18 Thread Michal Nazarewicz
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. Signed-off-by: Michal Nazarewicz --- arch/x86/kernel/tsc.c | 6 ++ 1 file

[PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-18 Thread Michal Nazarewicz
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. Signed-off-by: Michal Nazarewicz min...@mina86.com --- arch/x86/kernel/tsc.c | 6

Re: [PATCH] x86: tsc: get rid of custom DIV_ROUND

2014-06-18 Thread David Rientjes
On Thu, 19 Jun 2014, Michal Nazarewicz wrote: 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. Signed-off-by: Michal Nazarewicz