mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen: page_alloc: Don't open-code IS_ALIGNED()
init_heap_pages() is using an open-code version of IS_ALIGNED(). Replace it to improve the readability of the code. No functional change intended. Signed-off-by: Julien Grall <jgrall@amazon.com> Reviewed-by: Wei Chen <Wei.Chen@arm.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
71320946d5
commit
7a2b7edad5
1 file changed
+1
-1
@@ -1827,7 +1827,7 @@ static void init_heap_pages(
|
||||
unsigned long s = mfn_x(page_to_mfn(pg + i));
|
||||
unsigned long e = mfn_x(mfn_add(page_to_mfn(pg + nr_pages - 1), 1));
|
||||
bool use_tail = (nid == phys_to_nid(pfn_to_paddr(e - 1))) &&
|
||||
!(s & ((1UL << MAX_ORDER) - 1)) &&
|
||||
IS_ALIGNED(s, 1UL << MAX_ORDER) &&
|
||||
(find_first_set_bit(e) <= find_first_set_bit(s));
|
||||
unsigned long n;
|
||||
|
||||
|
||||