aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2010-04-14 23:58:36 +0900
committerPekka Enberg <[email protected]>2010-05-22 10:57:31 +0300
commit6b65aaf3027c4e02b42aaefd900aa79136a30681 (patch)
treea5a9b5cb55af436f9216729b734c92ee919a66d1 /tools/perf/util/trace-event-scripting.c
parentd3e14aa336b37df76ae875fa051dfdb0e765ddf9 (diff)
slub: Use alloc_pages_exact_node() for page allocation
The alloc_slab_page() in SLUB uses alloc_pages() if node is '-1'. This means that node validity check in alloc_pages_node is unnecessary and we can use alloc_pages_exact_node() to avoid comparison and branch as commit 6484eb3e2a81807722 ("page allocator: do not check NUMA node ID when the caller knows the node is valid") did for the page allocator. Cc: Christoph Lameter <[email protected]> Reviewed-by: KAMEZAWA Hiroyuki <[email protected]> Reviewed-by: Mel Gorman <[email protected]> Signed-off-by: Minchan Kim <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions