aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-11-06 20:03:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-06 21:42:15 -0500
commit0324e74534241f3f00910ec04ef67de1fe1542f4 (patch)
tree88f0b2a40a47dc0a22c0ce5e9b75a58470a56204 /kernel/events
parent1071ec7bc2dabd0a9d12a1ae5570f4fd3ba944ca (diff)
parent0cae60f91494e34a0c5391f1455f825d5849b05f (diff)
Merge tag 'driver-core-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core / sysfs patches from Greg KH: "Here's the big driver core / sysfs update for 3.13-rc1. There's lots of dev_groups updates for different subsystems, as they all get slowly migrated over to the safe versions of the attribute groups (removing userspace races with the creation of the sysfs files.) Also in here are some kobject updates, devres expansions, and the first round of Tejun's sysfs reworking to enable it to be used by other subsystems as a backend for an in-kernel filesystem. All of these have been in linux-next for a while with no reported issues" * tag 'driver-core-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (83 commits) sysfs: rename sysfs_assoc_lock and explain what it's about sysfs: use generic_file_llseek() for sysfs_file_operations sysfs: return correct error code on unimplemented mmap() mdio_bus: convert bus code to use dev_groups device: Make dev_WARN/dev_WARN_ONCE print device as well as driver name sysfs: separate out dup filename warning into a separate function sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.c sysfs: remove unused sysfs_get_dentry() prototype sysfs: honor bin_attr.attr.ignore_lockdep sysfs: merge sysfs_elem_bin_attr into sysfs_elem_attr devres: restore zeroing behavior of devres_alloc() sysfs: fix sysfs_write_file for bin file input: gameport: convert bus code to use dev_groups input: serio: remove bus usage of dev_attrs input: serio: use DEVICE_ATTR_RO() i2o: convert bus code to use dev_groups memstick: convert bus code to use dev_groups tifm: convert bus code to use dev_groups virtio: convert bus code to use dev_groups ipack: convert bus code to use dev_groups ...
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 953c14348375..663f43a20f73 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6292,6 +6292,7 @@ type_show(struct device *dev, struct device_attribute *attr, char *page)
6292 6292
6293 return snprintf(page, PAGE_SIZE-1, "%d\n", pmu->type); 6293 return snprintf(page, PAGE_SIZE-1, "%d\n", pmu->type);
6294} 6294}
6295static DEVICE_ATTR_RO(type);
6295 6296
6296static ssize_t 6297static ssize_t
6297perf_event_mux_interval_ms_show(struct device *dev, 6298perf_event_mux_interval_ms_show(struct device *dev,
@@ -6336,17 +6337,19 @@ perf_event_mux_interval_ms_store(struct device *dev,
6336 6337
6337 return count; 6338 return count;
6338} 6339}
6340static DEVICE_ATTR_RW(perf_event_mux_interval_ms);
6339 6341
6340static struct device_attribute pmu_dev_attrs[] = { 6342static struct attribute *pmu_dev_attrs[] = {
6341 __ATTR_RO(type), 6343 &dev_attr_type.attr,
6342 __ATTR_RW(perf_event_mux_interval_ms), 6344 &dev_attr_perf_event_mux_interval_ms.attr,
6343 __ATTR_NULL, 6345 NULL,
6344}; 6346};
6347ATTRIBUTE_GROUPS(pmu_dev);
6345 6348
6346static int pmu_bus_running; 6349static int pmu_bus_running;
6347static struct bus_type pmu_bus = { 6350static struct bus_type pmu_bus = {
6348 .name = "event_source", 6351 .name = "event_source",
6349 .dev_attrs = pmu_dev_attrs, 6352 .dev_groups = pmu_dev_groups,
6350}; 6353};
6351 6354
6352static void pmu_dev_release(struct device *dev) 6355static void pmu_dev_release(struct device *dev)