From 3b74eab6cc09d2175711b8cb948b6b70c02bd5e1 Mon Sep 17 00:00:00 2001 From: "a@b.com" Date: Thu, 27 Apr 2023 15:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E4=BF=AE=E6=94=B9=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=8B=93=E6=89=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: a@b.com --- drivers/base/topology.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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