Release 4.11 arch/powerpc/lib/alloc.c
#include <linux/types.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/bootmem.h>
#include <linux/string.h>
#include <asm/setup.h>
void * __ref zalloc_maybe_bootmem(size_t size, gfp_t mask)
{
void *p;
if (slab_is_available())
p = kzalloc(size, mask);
else {
p = memblock_virt_alloc(size, 0);
}
return p;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stephen Rothwell | 42 | 91.30% | 1 | 25.00% |
Michael Ellerman | 3 | 6.52% | 2 | 50.00% |
Fabian Frederick | 1 | 2.17% | 1 | 25.00% |
Total | 46 | 100.00% | 4 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stephen Rothwell | 59 | 92.19% | 2 | 33.33% |
Michael Ellerman | 3 | 4.69% | 2 | 33.33% |
Fabian Frederick | 1 | 1.56% | 1 | 16.67% |
David Howells | 1 | 1.56% | 1 | 16.67% |
Total | 64 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.