From 7badec622e705559fb6009e351fa79bc204b9ffd Mon Sep 17 00:00:00 2001 From: Daeyeong Lee Date: Mon, 12 Feb 2018 16:15:50 +0900 Subject: [PATCH] [COMMON] topology: sysfs: Provide coregroup_id and cluster_siblings attributes Change-Id: I28e6e81486a0eabc600462fff08994ca5669b2df Signed-off-by: Daeyeong Lee --- drivers/base/topology.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/base/topology.c b/drivers/base/topology.c index d936fcf9f1fb..96d6a42d9e7f 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c @@ -58,6 +58,9 @@ static ssize_t name##_list_show(struct device *dev, \ define_id_show_func(physical_package_id); static DEVICE_ATTR_RO(physical_package_id); +define_id_show_func(coregroup_id); +static DEVICE_ATTR_RO(coregroup_id); + define_id_show_func(core_id); static DEVICE_ATTR_RO(core_id); @@ -69,6 +72,10 @@ define_siblings_show_func(core_siblings, core_cpumask); static DEVICE_ATTR_RO(core_siblings); static DEVICE_ATTR_RO(core_siblings_list); +define_siblings_show_func(cluster_siblings, cluster_cpumask); +static DEVICE_ATTR_RO(cluster_siblings); +static DEVICE_ATTR_RO(cluster_siblings_list); + #ifdef CONFIG_SCHED_BOOK define_id_show_func(book_id); static DEVICE_ATTR_RO(book_id); @@ -92,6 +99,9 @@ static struct attribute *default_attrs[] = { &dev_attr_thread_siblings_list.attr, &dev_attr_core_siblings.attr, &dev_attr_core_siblings_list.attr, + &dev_attr_coregroup_id.attr, + &dev_attr_cluster_siblings.attr, + &dev_attr_cluster_siblings_list.attr, #ifdef CONFIG_SCHED_BOOK &dev_attr_book_id.attr, &dev_attr_book_siblings.attr, -- 2.20.1