summaryrefslogtreecommitdiff
path: root/drivers/ide/arm/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPengjie Zhang <zhangpengjie2@huawei.com>2025-12-16 11:11:53 +0800
committerChanwoo Choi <cw00.choi@samsung.com>2026-04-04 03:15:38 +0900
commit943a872fe41a8352d64b20de77d8b707978e5732 (patch)
tree37504cbc8d1ebbcca5358c21208be16ed20063a4 /drivers/ide/arm/git@git.tavy.me:linux.git
parent82bb8dc953c2203bb710b7358f030b1d9bdf698d (diff)
PM / devfreq: use _visible attribute to replace create/remove_sysfs_files()
Previously, non-generic attributes (polling_interval, timer) used separate create/delete logic, leading to race conditions during concurrent access in creation/deletion. Multi-threaded operations also caused inconsistencies between governor capabilities and attribute states. 1.Use is_visible + sysfs_update_group() to unify management of these attributes, eliminating creation/deletion races. 2.Add locks and validation to these attributes, ensuring consistency between current governor capabilities and attribute operations in multi-threaded environments. Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com> Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Link: https://www.spinics.net/lists/kernel/msg5967745.html
Diffstat (limited to 'drivers/ide/arm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions