path: root/mm/allocpercpu.c
AgeCommit message (Collapse)AuthorLines
2006-12-07[PATCH] Allow NULL pointers in percpu_freeAlan Stern-4/+5
The patch (as824b) makes percpu_free() ignore NULL arguments, as one would expect for a deallocation routine. (Note that free_percpu is #defined as percpu_free in include/linux/percpu.h.) A few callers are updated to remove now-unneeded tests for NULL. A few other callers already seem to assume that passing a NULL pointer to percpu_free() is okay! The patch also removes an unnecessary NULL check in percpu_depopulate(). Signed-off-by: Alan Stern <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-09-26[PATCH] Extract the allocpercpu functions from the slab allocatorChristoph Lameter-0/+129
The allocpercpu functions __alloc_percpu and __free_percpu() are heavily using the slab allocator. However, they are conceptually slab. This also simplifies SLOB (at this point slob may be broken in mm. This should fix it). Signed-off-by: Christoph Lameter <> Cc: Matt Mackall <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>