forked from luck/tmp_suning_uos_patched
parent
b49c6eb3ae
commit
3b74eab6cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user