diff options
Diffstat (limited to 'drivers/base/topology.c')
-rw-r--r-- | drivers/base/topology.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 2f5919ed91ab..94ffee378f10 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c | |||
@@ -62,25 +62,6 @@ static ssize_t show_cpumap(int type, const struct cpumask *mask, char *buf) | |||
62 | } | 62 | } |
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #ifdef arch_provides_topology_pointers | ||
66 | #define define_siblings_show_map(name) \ | ||
67 | static ssize_t show_##name(struct device *dev, \ | ||
68 | struct device_attribute *attr, char *buf) \ | ||
69 | { \ | ||
70 | unsigned int cpu = dev->id; \ | ||
71 | return show_cpumap(0, topology_##name(cpu), buf); \ | ||
72 | } | ||
73 | |||
74 | #define define_siblings_show_list(name) \ | ||
75 | static ssize_t show_##name##_list(struct device *dev, \ | ||
76 | struct device_attribute *attr, \ | ||
77 | char *buf) \ | ||
78 | { \ | ||
79 | unsigned int cpu = dev->id; \ | ||
80 | return show_cpumap(1, topology_##name(cpu), buf); \ | ||
81 | } | ||
82 | |||
83 | #else | ||
84 | #define define_siblings_show_map(name) \ | 65 | #define define_siblings_show_map(name) \ |
85 | static ssize_t show_##name(struct device *dev, \ | 66 | static ssize_t show_##name(struct device *dev, \ |
86 | struct device_attribute *attr, char *buf) \ | 67 | struct device_attribute *attr, char *buf) \ |
@@ -95,7 +76,6 @@ static ssize_t show_##name##_list(struct device *dev, \ | |||
95 | { \ | 76 | { \ |
96 | return show_cpumap(1, topology_##name(dev->id), buf); \ | 77 | return show_cpumap(1, topology_##name(dev->id), buf); \ |
97 | } | 78 | } |
98 | #endif | ||
99 | 79 | ||
100 | #define define_siblings_show_func(name) \ | 80 | #define define_siblings_show_func(name) \ |
101 | define_siblings_show_map(name); define_siblings_show_list(name) | 81 | define_siblings_show_map(name); define_siblings_show_list(name) |