Commit 7920259
workqueue: Cleanup subsys attribute registration
While reviewing users of subsys_virtual_register() I noticed that
wq_sysfs_init() ignores the @groups argument. This looks like a
historical artifact as the original wq_subsys only had one attribute to
register.
On the way to building up an @groups argument to pass to
subsys_virtual_register() a few more cleanups fell out:
* Use DEVICE_ATTR_RO() and DEVICE_ATTR_RW() for
cpumask_{isolated,requested} and cpumask respectively. Rename the
@show and @store methods accordingly.
* Co-locate the attribute definition with the methods. This required
moving wq_unbound_cpumask_show down next to wq_unbound_cpumask_store
(renamed to cpumask_show() and cpumask_store())
* Use ATTRIBUTE_GROUPS() to skip some boilerplate declarations
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent d70f5d5 commit 7920259
1 file changed
Lines changed: 17 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7246 | 7246 | | |
7247 | 7247 | | |
7248 | 7248 | | |
7249 | | - | |
| 7249 | + | |
7250 | 7250 | | |
7251 | 7251 | | |
7252 | | - | |
| 7252 | + | |
7253 | 7253 | | |
| 7254 | + | |
7254 | 7255 | | |
7255 | | - | |
| 7256 | + | |
7256 | 7257 | | |
7257 | 7258 | | |
7258 | | - | |
| 7259 | + | |
7259 | 7260 | | |
| 7261 | + | |
7260 | 7262 | | |
7261 | | - | |
| 7263 | + | |
7262 | 7264 | | |
7263 | 7265 | | |
7264 | | - | |
| 7266 | + | |
7265 | 7267 | | |
7266 | 7268 | | |
7267 | | - | |
| 7269 | + | |
7268 | 7270 | | |
7269 | 7271 | | |
7270 | 7272 | | |
| |||
7280 | 7282 | | |
7281 | 7283 | | |
7282 | 7284 | | |
| 7285 | + | |
7283 | 7286 | | |
7284 | | - | |
7285 | | - | |
7286 | | - | |
7287 | | - | |
7288 | | - | |
7289 | | - | |
| 7287 | + | |
| 7288 | + | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
7290 | 7292 | | |
| 7293 | + | |
7291 | 7294 | | |
7292 | 7295 | | |
7293 | 7296 | | |
7294 | | - | |
7295 | | - | |
7296 | | - | |
7297 | | - | |
7298 | | - | |
7299 | | - | |
7300 | | - | |
7301 | | - | |
7302 | | - | |
7303 | | - | |
7304 | | - | |
7305 | | - | |
7306 | | - | |
7307 | | - | |
7308 | | - | |
7309 | | - | |
7310 | | - | |
7311 | | - | |
7312 | | - | |
| 7297 | + | |
7313 | 7298 | | |
7314 | 7299 | | |
7315 | 7300 | | |
| |||
0 commit comments