mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
arm: Use sysfs_emit() for cpumask show callbacks
These callbacks are sysfs show paths. Use sysfs_emit() and cpumask_pr_args() to emit the masks. This prepares for removing cpumap_print_to_pagebuf(). Signed-off-by: Yury Norov <ynorov@nvidia.com>
This commit is contained in:
parent
1c61b0a6e5
commit
1a9adacbbb
|
|
@ -127,7 +127,7 @@ static ssize_t mmdc_pmu_cpumask_show(struct device *dev,
|
|||
{
|
||||
struct mmdc_pmu *pmu_mmdc = dev_get_drvdata(dev);
|
||||
|
||||
return cpumap_print_to_pagebuf(true, buf, &pmu_mmdc->cpu);
|
||||
return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(&pmu_mmdc->cpu));
|
||||
}
|
||||
|
||||
static struct device_attribute mmdc_pmu_cpumask_attr =
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ static struct attribute_group l2x0_pmu_event_attrs_group = {
|
|||
static ssize_t l2x0_pmu_cpumask_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
return cpumap_print_to_pagebuf(true, buf, &pmu_cpu);
|
||||
return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(&pmu_cpu));
|
||||
}
|
||||
|
||||
static struct device_attribute l2x0_pmu_cpumask_attr =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user