[PATCH v2 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
The kernel has grown a number of different implementations of DIV_ROUND_CLOSEST_ULL(). That is, a macro that does the same as DIV_ROUND_CLOSEST() but with the first operand being an unsigned long long. That means that you have to do the division using do_div() instead of using the C division

[PATCH v2 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
The kernel has grown a number of different implementations of DIV_ROUND_CLOSEST_ULL(). That is, a macro that does the same as DIV_ROUND_CLOSEST() but with the first operand being an unsigned long long. That means that you have to do the division using do_div() instead of using the C division