Merge tag 'iwlwifi-next-for-kalle-2014-12-30' of https://git.kernel.org/pub/scm/linux...
[cascardo/linux.git] / arch / x86 / kernel / cpu / perf_event_amd_iommu.c
index 639d128..97242a9 100644 (file)
@@ -130,10 +130,7 @@ static ssize_t _iommu_cpumask_show(struct device *dev,
                                   struct device_attribute *attr,
                                   char *buf)
 {
-       int n = cpulist_scnprintf(buf, PAGE_SIZE - 2, &iommu_cpumask);
-       buf[n++] = '\n';
-       buf[n] = '\0';
-       return n;
+       return cpumap_print_to_pagebuf(true, buf, &iommu_cpumask);
 }
 static DEVICE_ATTR(cpumask, S_IRUGO, _iommu_cpumask_show, NULL);