diff options
Diffstat (limited to 'kernel/events/core.c')
-rw-r--r-- | kernel/events/core.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index dd236b66ca3a..1a825a486a25 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -6271,6 +6271,7 @@ type_show(struct device *dev, struct device_attribute *attr, char *page) | |||
6271 | 6271 | ||
6272 | return snprintf(page, PAGE_SIZE-1, "%d\n", pmu->type); | 6272 | return snprintf(page, PAGE_SIZE-1, "%d\n", pmu->type); |
6273 | } | 6273 | } |
6274 | static DEVICE_ATTR_RO(type); | ||
6274 | 6275 | ||
6275 | static ssize_t | 6276 | static ssize_t |
6276 | perf_event_mux_interval_ms_show(struct device *dev, | 6277 | perf_event_mux_interval_ms_show(struct device *dev, |
@@ -6315,17 +6316,19 @@ perf_event_mux_interval_ms_store(struct device *dev, | |||
6315 | 6316 | ||
6316 | return count; | 6317 | return count; |
6317 | } | 6318 | } |
6319 | static DEVICE_ATTR_RW(perf_event_mux_interval_ms); | ||
6318 | 6320 | ||
6319 | static struct device_attribute pmu_dev_attrs[] = { | 6321 | static struct attribute *pmu_dev_attrs[] = { |
6320 | __ATTR_RO(type), | 6322 | &dev_attr_type.attr, |
6321 | __ATTR_RW(perf_event_mux_interval_ms), | 6323 | &dev_attr_perf_event_mux_interval_ms.attr, |
6322 | __ATTR_NULL, | 6324 | NULL, |
6323 | }; | 6325 | }; |
6326 | ATTRIBUTE_GROUPS(pmu_dev); | ||
6324 | 6327 | ||
6325 | static int pmu_bus_running; | 6328 | static int pmu_bus_running; |
6326 | static struct bus_type pmu_bus = { | 6329 | static struct bus_type pmu_bus = { |
6327 | .name = "event_source", | 6330 | .name = "event_source", |
6328 | .dev_attrs = pmu_dev_attrs, | 6331 | .dev_groups = pmu_dev_groups, |
6329 | }; | 6332 | }; |
6330 | 6333 | ||
6331 | static void pmu_dev_release(struct device *dev) | 6334 | static void pmu_dev_release(struct device *dev) |