]> Pileus Git - ~andy/linux/blobdiff - drivers/base/topology.c
arm64: barriers: allow dsb macro to take option parameter
[~andy/linux] / drivers / base / topology.c
index 2f5919ed91aba9f4d025c7f899b2da78ff2bc625..94ffee378f103d6cd2018497a5f1a93ebcde9baf 100644 (file)
@@ -62,25 +62,6 @@ static ssize_t show_cpumap(int type, const struct cpumask *mask, char *buf)
 }
 #endif
 
-#ifdef arch_provides_topology_pointers
-#define define_siblings_show_map(name)                                 \
-static ssize_t show_##name(struct device *dev,                         \
-                          struct device_attribute *attr, char *buf)    \
-{                                                                      \
-       unsigned int cpu = dev->id;                                     \
-       return show_cpumap(0, topology_##name(cpu), buf);               \
-}
-
-#define define_siblings_show_list(name)                                        \
-static ssize_t show_##name##_list(struct device *dev,                  \
-                                 struct device_attribute *attr,        \
-                                 char *buf)                            \
-{                                                                      \
-       unsigned int cpu = dev->id;                                     \
-       return show_cpumap(1, topology_##name(cpu), buf);               \
-}
-
-#else
 #define define_siblings_show_map(name)                                 \
 static ssize_t show_##name(struct device *dev,                         \
                           struct device_attribute *attr, char *buf)    \
@@ -95,7 +76,6 @@ static ssize_t show_##name##_list(struct device *dev,                 \
 {                                                                      \
        return show_cpumap(1, topology_##name(dev->id), buf);           \
 }
-#endif
 
 #define define_siblings_show_func(name)                \
        define_siblings_show_map(name); define_siblings_show_list(name)