lkml.org 
[lkml]   [2011]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Xen-devel] Re: [PATCH 4/7] swiotlb: Expose swiotlb_nr_tlb function to modules as swiotlb_enabled
On Sat, Sep 17, 2011 at 04:05:58AM +0900, FUJITA Tomonori wrote:
> On Tue, 13 Sep 2011 10:12:47 -0400
> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
>
> > As a mechanism to detect whether SWIOTLB is enabled or not.
> > And as such, we might as well wrap it within an 'swiotlb_enabled()'
> > function that will call the swiotlb_nr_tlb.
> >
> > We also fix the spelling - it was swioltb instead of
> > swiotlb.
> >
> > CC: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > ---
> > drivers/xen/swiotlb-xen.c | 2 +-
> > include/linux/swiotlb.h | 7 ++++++-
> > lib/swiotlb.c | 5 +++--
> > 3 files changed, 10 insertions(+), 4 deletions(-)
>
> Can we just use swiotlb_nr_tbl() rather than inventing a new function
> that only wraps swiotlb_nr_tbl()?

Absolutly. Will do that.


\
 
 \ /
  Last update: 2011-09-16 22:57    [W:0.102 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site