diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 38eecf405f44..7a75010a9c4f 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c @@ -46,9 +46,10 @@ define_id_show_func(physical_package_id); #else static ssize_t physical_package_id_show(struct device *dev, struct device_attribute *attr, char *buf) { - if(cpu_is_ft_d2000() || cpu_is_ft2004()){ +/* if(cpu_is_ft_d2000() || cpu_is_ft2004()){ return sprintf(buf, "0\n"); } +*/ return sprintf(buf, "%d\n", topology_physical_package_id(dev->id)); } #endif @@ -73,23 +74,27 @@ define_siblings_show_func(core_siblings, core_cpumask); #else static ssize_t core_siblings_show(struct device *dev, struct device_attribute *attr, char *buf) { +/* if(cpu_is_ft_d2000()){ return sprintf(buf, "ff\n"); } else if(cpu_is_ft2004()){ return sprintf(buf, "f\n"); } +*/ return cpumap_print_to_pagebuf(false, buf, topology_core_cpumask(dev->id)); } static ssize_t core_siblings_list_show(struct device *dev, struct device_attribute *attr, char *buf) { +/* if(cpu_is_ft_d2000()){ return sprintf(buf, "0-7\n"); } else if(cpu_is_ft2004()){ return sprintf(buf, "0-3\n"); } +*/ return cpumap_print_to_pagebuf(true, buf, topology_core_cpumask(dev->id)); } #endif