| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-07-22 | linux_compat: handle __GFP_ZERO in kmalloc() | Masahiro Yamada | |
| 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 <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Acked-by: Simon Glass <[email protected]> Reviewed-by: Lukasz Majewski <[email protected]> | |||
| 2015-07-22 | linux_compat: move vzalloc() to header file as an inline function | Masahiro Yamada | |
| The vzalloc(size) is equivalent to kzalloc(size, 0). Move it to include/linux/compat.h as an inline function in order to avoid the function call overhead. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Acked-by: Simon Glass <[email protected]> | |||
| 2014-08-25 | lib, linux: move linux specific defines to linux/compat.h | Heiko Schocher | |
| - move linux specific defines from usb and video code into linux/compat.h - move common linux specific defines from include/ubi_uboot.h to linux/compat.h - add for new mtd/ubi/ubifs sync new needed linux specific defines to linux/compat.h Signed-off-by: Heiko Schocher <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Anatolij Gustschin <[email protected]> [trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from usb/lin_gadet_compat.h] Signed-off-by: Tom Rini <[email protected]> | |||
