aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorDan Williams <[email protected]>2024-03-08 05:39:32 +0000
committerTejun Heo <[email protected]>2024-03-25 19:17:51 +0000
commit79202591a55a365251496162ced3004a0a1fa1cf (patch)
treec871213033a3c3df6e0b0bc55cc0e9b62bc67492 /arch/powerpc/lib/code-patching.c
parentworkqueue: Use list_last_entry() to get the last idle worker (diff)
downloadkernel-79202591a55a365251496162ced3004a0a1fa1cf.tar.gz
kernel-79202591a55a365251496162ced3004a0a1fa1cf.zip
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 <[email protected]> Reviewed-by: Lai Jiangshan <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions