[PATCH 4/6] kernel/resource.c: use generic round_up_pow2() macro
From: Nick Wilson
Date: Thu Apr 07 2005 - 19:55:11 EST
From: Nick Wilson <njw@xxxxxxxx>
Use the generic round_up_pow2() instead of a custom rounding method.
Signed-off-by: Nick Wilson <njw@xxxxxxxx>
---
resource.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux/kernel/resource.c
===================================================================
--- linux.orig/kernel/resource.c 2005-04-07 15:13:56.000000000 -0700
+++ linux/kernel/resource.c 2005-04-07 15:45:57.000000000 -0700
@@ -263,7 +263,7 @@ static int find_resource(struct resource
new->start = min;
if (new->end > max)
new->end = max;
- new->start = (new->start + align - 1) & ~(align - 1);
+ new->start = round_up_pow2(new->start, align);
if (alignf)
alignf(alignf_data, new, size, align);
if (new->start < new->end && new->end - new->start + 1 >= size) {
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/