Re: [PATCH v2 3/6] iommu/amd: Introduce amd_iommu_get_num_iommus()

2016-02-09 Thread Suravee Suthikulpanit
Hi Joerg, On 01/07/2016 06:15 AM, Joerg Roedel wrote: On Fri, Jan 01, 2016 at 12:13:37PM -0600, Suravee Suthikulpanit wrote: +int amd_iommu_get_num_iommus(void) +{ + return amd_iommus_present; +} +EXPORT_SYMBOL(amd_iommu_get_num_iommus); Is this export needed? The perf code can't be bui

[PATCH v2 3/6] iommu/amd: Introduce amd_iommu_get_num_iommus()

2016-01-01 Thread Suravee Suthikulpanit
This patch introduces amd_iommu_get_num_iommus(). Initially, this is intended to be used by Perf AMD IOMMU driver. Signed-off-by: Suravee Suthikulpanit --- drivers/iommu/amd_iommu_init.c| 8 +++- include/linux/perf/perf_event_amd_iommu.h | 2 ++ 2 files changed, 9 insertions(+),