]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/kernel/cpu/perf_event_amd_iommu.c
cpumask: factor out show_cpumap into separate helper function
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kernel / cpu / perf_event_amd_iommu.c
index 639d1289b1ba9a16cc7b9684d3697f5b79df0d27..97242a9242bdfde7dabba99e9a0d245ffe770c01 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);