@@ -380,24 +380,22 @@ static ssize_t size_show(struct device *dev,
380
380
return sysfs_emit (buf , "%uK\n" , this_leaf -> size >> 10 );
381
381
}
382
382
383
- static ssize_t shared_cpumap_show_func (struct device * dev , bool list , char * buf )
383
+ static ssize_t shared_cpu_map_show (struct device * dev ,
384
+ struct device_attribute * attr , char * buf )
384
385
{
385
386
struct cacheinfo * this_leaf = dev_get_drvdata (dev );
386
387
const struct cpumask * mask = & this_leaf -> shared_cpu_map ;
387
388
388
- return cpumap_print_to_pagebuf (list , buf , mask );
389
- }
390
-
391
- static ssize_t shared_cpu_map_show (struct device * dev ,
392
- struct device_attribute * attr , char * buf )
393
- {
394
- return shared_cpumap_show_func (dev , false, buf );
389
+ return sysfs_emit (buf , "%*pb\n" , nr_cpu_ids , mask );
395
390
}
396
391
397
392
static ssize_t shared_cpu_list_show (struct device * dev ,
398
393
struct device_attribute * attr , char * buf )
399
394
{
400
- return shared_cpumap_show_func (dev , true, buf );
395
+ struct cacheinfo * this_leaf = dev_get_drvdata (dev );
396
+ const struct cpumask * mask = & this_leaf -> shared_cpu_map ;
397
+
398
+ return sysfs_emit (buf , "%*pbl\n" , nr_cpu_ids , mask );
401
399
}
402
400
403
401
static ssize_t type_show (struct device * dev ,
0 commit comments