lkml.org 
[lkml]   [2010]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/10] swiotlb: Normalize the swiotlb_init_* function's naming syntax.
    Date
    The previous function names were misleading by including "with_default_size"
    as the size was being passed in as argument. Change the functions names
    to be clear on what they do.

    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    ---
    lib/swiotlb.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/lib/swiotlb.c b/lib/swiotlb.c
    index 0663879..7b66fc3 100644
    --- a/lib/swiotlb.c
    +++ b/lib/swiotlb.c
    @@ -174,7 +174,7 @@ void swiotlb_print_info(void)
    * structures for the software IO TLB used to implement the DMA API.
    */
    void __init
    -swiotlb_init_with_default_size(size_t default_size, int verbose)
    +swiotlb_init_early(size_t default_size, int verbose)
    {
    unsigned long i, bytes;

    @@ -217,7 +217,7 @@ swiotlb_init_with_default_size(size_t default_size, int verbose)
    void __init
    swiotlb_init(int verbose)
    {
    - swiotlb_init_with_default_size(64 * (1<<20), verbose); /* default to 64MB */
    + swiotlb_init_early(64 * (1<<20), verbose); /* default to 64MB */
    }

    /*
    @@ -226,7 +226,7 @@ swiotlb_init(int verbose)
    * This should be just like above, but with some error catching.
    */
    int
    -swiotlb_late_init_with_default_size(size_t default_size)
    +swiotlb_init_late(size_t default_size)
    {
    unsigned long i, bytes, req_nslabs = io_tlb_nslabs;
    unsigned int order;
    --
    1.6.2.5


    \
     
     \ /
      Last update: 2010-02-18 18:03    [W:5.531 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site