aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJesper Juhl <[email protected]>2010-11-04 20:44:41 +0000
committerLinus Torvalds <[email protected]>2010-11-05 15:21:34 +0000
commit408af87a397a8ddef56ad39a79481f592aa1ac1a (patch)
treeb1e2aeafa2ade41e7b64a0025fa050f3be83d5c7 /tools/perf/scripts/python
parentMerge branch 'for-linus-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-408af87a397a8ddef56ad39a79481f592aa1ac1a.tar.gz
kernel-408af87a397a8ddef56ad39a79481f592aa1ac1a.zip
Clean up relay_alloc_page_array() slightly by using vzalloc rather than 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]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions