lkml.org 
[lkml]   [2010]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/6] change alloc function in pcpu_alloc_pages
    On Tue, 20 Apr 2010, Mel Gorman wrote:

    > alloc_pages_exact_node() avoids a branch in a hot path that is checking for
    > something the caller already knows. That's the reason it exists.

    We can avoid alloc_pages_exact_node() by making all callers of
    alloc_pages_node() never use -1. -1 is ambiguous and only rarely will a
    caller pass that to alloc_pages_node().




    \
     
     \ /
      Last update: 2010-04-21 16:19    [W:2.486 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site