Currently, kzalloc() returns zero-filled memory, while kmalloc() simply ignores the second argument and never fills the memory area with zeros. I want kmalloc(size, __GFP_ZERO) to behave as kzalloc() does, which will make it easier to add more memory allocator variants. With the introduction of __GFP_ZERO flag, going forward, kzmalloc() variants can fall back to kmalloc() enabling the __GFP_ZERO flag. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Heiko Schocher <hs@denx.de> Acked-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com> |
||
|---|---|---|
| .. | ||
| bzip2 | ||
| dhry | ||
| libfdt | ||
| lzma | ||
| lzo | ||
| rsa | ||
| tizen | ||
| zlib | ||
| Kconfig | ||
| Makefile | ||
| addr_map.c | ||
| aes.c | ||
| asm-offsets.c | ||
| bch.c | ||
| bitrev.c | ||
| circbuf.c | ||
| crc7.c | ||
| crc8.c | ||
| crc16.c | ||
| crc32.c | ||
| ctype.c | ||
| display_options.c | ||
| div64.c | ||
| errno.c | ||
| errno_str.c | ||
| fdtdec.c | ||
| fdtdec_common.c | ||
| fdtdec_test.c | ||
| gunzip.c | ||
| gzip.c | ||
| hang.c | ||
| hashtable.c | ||
| initcall.c | ||
| ldiv.c | ||
| linux_compat.c | ||
| linux_string.c | ||
| list_sort.c | ||
| lmb.c | ||
| md5.c | ||
| net_utils.c | ||
| physmem.c | ||
| qsort.c | ||
| rand.c | ||
| rbtree.c | ||
| rc4.c | ||
| sha1.c | ||
| sha256.c | ||
| slre.c | ||
| string.c | ||
| strmhz.c | ||
| time.c | ||
| tpm.c | ||
| trace.c | ||
| uuid.c | ||
| vsprintf.c | ||