[COMMON] topology: sysfs: Provide coregroup_id and cluster_siblings attributes
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Mon, 12 Feb 2018 07:15:50 +0000 (16:15 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:52 +0000 (17:30 +0900)
Change-Id: I28e6e81486a0eabc600462fff08994ca5669b2df
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
drivers/base/topology.c

index d936fcf9f1fb985033a28092209d297721d5bfb4..96d6a42d9e7f982082dda09e9576676027a4ed84 100644 (file)
@@ -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,