summaryrefslogtreecommitdiffstats
path: root/include/linux/lmb.h
diff options
context:
space:
mode:
authorMichael Ellerman2010-01-12 22:25:24 +0100
committerBenjamin Herrenschmidt2010-02-03 07:39:50 +0100
commit24551f64d47af9539a7f324343bffeea09d9dcfa (patch)
tree4a6e8660f0cd71a3e8ad97b221ac2ae2da1da322 /include/linux/lmb.h
parentpowerpc: Increase NR_IRQS Kconfig maximum to 32768 (diff)
downloadkernel-qcow2-linux-24551f64d47af9539a7f324343bffeea09d9dcfa.tar.gz
kernel-qcow2-linux-24551f64d47af9539a7f324343bffeea09d9dcfa.tar.xz
kernel-qcow2-linux-24551f64d47af9539a7f324343bffeea09d9dcfa.zip
lmb: Add lmb_free()
We can free memory allocated with lmb_alloc() by removing it from the list of reserved LMBs. Rework lmb_remove() to allow that possibility and add lmb_free() which exploits it. BenH: Removed some useless parenthesis Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/lmb.h')
-rw-r--r--include/linux/lmb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lmb.h b/include/linux/lmb.h
index ef82b8fcbddb..f3d14333ebed 100644
--- a/include/linux/lmb.h
+++ b/include/linux/lmb.h
@@ -42,6 +42,7 @@ extern void __init lmb_init(void);
extern void __init lmb_analyze(void);
extern long lmb_add(u64 base, u64 size);
extern long lmb_remove(u64 base, u64 size);
+extern long __init lmb_free(u64 base, u64 size);
extern long __init lmb_reserve(u64 base, u64 size);
extern u64 __init lmb_alloc_nid(u64 size, u64 align, int nid,
u64 (*nid_range)(u64, u64, int *));