Amitoj Kaur Chawla 585423c8c4 x86/xen: Use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation
(((n) + (d) - 1) /(d)) but is perhaps more readable.

The Coccinelle script used to make this change is as follows:
@haskernel@
@@

#include <linux/kernel.h>

@depends on haskernel@
expression n,d;
@@

(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2016-07-06 10:34:49 +01:00
..
2016-05-27 15:57:31 -07:00
2016-05-24 10:22:34 -07:00
2016-03-31 13:35:10 +02:00
2016-04-20 10:36:57 +02:00
2016-04-20 10:36:57 +02:00
2016-07-06 10:34:49 +01:00
2016-04-22 10:29:07 +02:00