Release 4.14 arch/powerpc/lib/alloc.c
// SPDX-License-Identifier: GPL-2.0
#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 | 90.77% | 2 | 28.57% |
Michael Ellerman | 3 | 4.62% | 2 | 28.57% |
Fabian Frederick | 1 | 1.54% | 1 | 14.29% |
Greg Kroah-Hartman | 1 | 1.54% | 1 | 14.29% |
David Howells | 1 | 1.54% | 1 | 14.29% |
Total | 65 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.