diff options
author | Ganesh Mahendran <[email protected]> | 2014-12-12 16:57:13 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-13 12:42:50 -0800 |
commit | 083914eab96fabddfc715f0436e082eb375c5704 (patch) | |
tree | a4d60aa9d39cf9687ee7b047447096673a94edc1 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 181366561ac1e1a7bc3b91dbe45e7614a2f758b9 (diff) |
zram: use DEVICE_ATTR_[RW|RO|WO] to define zram sys device attribute
In current zram, we use DEVICE_ATTR() to define sys device attributes.
SO, we need to set (S_IRUGO | S_IWUSR) permission and other arguments
manually. Linux already provids the macro DEVICE_ATTR_[RW|RO|WO] to
define sys device attribute. It is simple and readable.
This patch uses kernel defined macro DEVICE_ATTR_[RW|RO|WO] to define
zram device attribute.
Signed-off-by: Ganesh Mahendran <[email protected]>
Acked-by: Jerome Marchand <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions