Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up relay_alloc_page_array() slightly by using vzalloc rather th…
…an vmalloc and memset We can optimize kernel/relay.c::relay_alloc_page_array() slightly by using vzalloc. The patch makes these changes: - use vzalloc instead of vmalloc+memset. - remove redundant local variable 'array'. - declare local 'pa_size' as const. Cuts down nicely on both source and object-code size. Signed-off-by: Jesper Juhl <[email protected]> Acked-by: Pekka Enberg <[email protected]> Acked-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information