diff options
author | Zhao Qiang <qiang.zhao@freescale.com> | 2015-11-30 03:48:54 +0100 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-12-23 00:10:18 +0100 |
commit | 0e6e01ff694ee222acc5a9184211678473c948e3 (patch) | |
tree | b3c1809b02b0b8accf5b7b8ca82c632842799e7a /lib | |
parent | genalloc:support allocating specific region (diff) | |
download | linux-0e6e01ff694ee222acc5a9184211678473c948e3.tar.xz linux-0e6e01ff694ee222acc5a9184211678473c948e3.zip |
CPM/QE: use genalloc to manage CPM/QE muram
Use genalloc to manage CPM/QE muram instead of rheap.
Signed-off-by: Zhao Qiang <qiang.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/genalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c index 5ec83cd93284..0a1139644d32 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -576,7 +576,7 @@ unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size, fixed_data = data; order = pool->min_alloc_order; offset_bit = fixed_data->offset >> order; - if (WARN_ON(fixed_data->offset & (1UL << order - 1))) + if (WARN_ON(fixed_data->offset & ((1UL << order) - 1))) return size; start_bit = bitmap_find_next_zero_area(map, size, |