topology/sysfs: Add PPIN in sysfs under cpu topology
[linux-2.6-microblaze.git] / drivers / base / topology.c
index 044f366..e9d1efc 100644 (file)
@@ -58,6 +58,9 @@ static DEVICE_ATTR_RO(cluster_id);
 define_id_show_func(core_id, "%d");
 static DEVICE_ATTR_RO(core_id);
 
+define_id_show_func(ppin, "0x%llx");
+static DEVICE_ATTR_ADMIN_RO(ppin);
+
 define_siblings_read_func(thread_siblings, sibling_cpumask);
 static BIN_ATTR_RO(thread_siblings, 0);
 static BIN_ATTR_RO(thread_siblings_list, 0);
@@ -145,6 +148,7 @@ static struct attribute *default_attrs[] = {
 #ifdef TOPOLOGY_DRAWER_SYSFS
        &dev_attr_drawer_id.attr,
 #endif
+       &dev_attr_ppin.attr,
        NULL
 };