From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Re: [PATCH 4/7] swiotlb: Expose swiotlb_nr_tlb function to modules as swiotlb_enabled Date: Fri, 16 Sep 2011 16:54:10 -0400 Message-ID: <20110916205410.GA16370@phenom.oracle.com> References: <1315923170-25568-1-git-send-email-konrad.wilk@oracle.com> <1315923170-25568-5-git-send-email-konrad.wilk@oracle.com> <20110917035611F.fujita.tomonori@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20110917035611F.fujita.tomonori@lab.ntt.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: FUJITA Tomonori Cc: thellstrom@vmware.com, xen-devel@lists.xensource.com, thomas@shipmail.org, airlied@linux.ie, pq@iki.fi, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bskeggs@redhat.com, alexdeucher@gmail.com, airlied@redhat.com, j.glisse@redhat.com List-Id: xen-devel@lists.xenproject.org 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 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 > > Signed-off-by: Konrad Rzeszutek Wilk > > --- > > 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.