Tag: 585423c8c4d2f39a2c299bc6dd16433e6141fba5

x86/xen: Use DIV_ROUND_UP

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> 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 @depends on haskernel@ expression n,d; @@ ( – (n + d – 1) / d + DIV_ROUND_UP(n,d) | …

Lire la suite