[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-11 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-11 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

Re: [PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-07 Thread Ingo Molnar
* John Stultz wrote: > The previous clocks_calc_max_nsecs had some unecessarily > complex bit logic to find the max interval that could cause > multiplication overflows. Since this is not in the hot > path, just do the divide to make it easier to read. > > The previous implementation also had

Re: [PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-07 Thread Ingo Molnar
* John Stultz john.stu...@linaro.org wrote: The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-06 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-03-06 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-01-22 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided

[PATCH 01/12] clocksource: Simplify clocks_calc_max_nsecs logic

2015-01-22 Thread John Stultz
The previous clocks_calc_max_nsecs had some unecessarily complex bit logic to find the max interval that could cause multiplication overflows. Since this is not in the hot path, just do the divide to make it easier to read. The previous implementation also had a subtle issue that it avoided