feat: add short idle and TLP mode support#1109
Conversation
There was a problem hiding this comment.
Sorry @xionglinlin, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review这份代码主要是为了在 LoongArch 架构的设备上引入“短 Idle (Short Idle)”的电源管理机制,涉及系统守护进程(写内核节点)、会话电源管理(定时器、黑名单应用检测、状态同步)以及 DConfig 配置项的读取与同步。 整体来看,代码逻辑较为清晰,但存在一些安全隐患、性能问题、逻辑漏洞及代码规范上的改进空间。以下是详细的审查意见: 一、 代码安全
二、 代码性能
三、 语法与逻辑
四、 代码质量与规范
总结建议这是一个比较大的 Feature 合入,涉及跨进程(Session <-> System Daemon <-> Kernel)的状态同步。建议重点关注内核路径的校验、Map 初始化的 Bug以及DBus 参数类型的匹配。在合入前,最好能模拟 DConfig 被恶意篡改、DBus通信断开、应用频繁启停等异常场景进行边界测试。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xionglinlin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
误操作导致pr关闭,已用 pr:#1111 替代 |
Log: Added short idle state management and TLP mode configuration for power saving optimization
Influence:
feat: 添加短idle和TLP模式支持
Log: 新增短idle状态管理和TLP模式配置,优化节能策略
Influence:
PMS: TASK-389737
Change-Id: Ia3572bf438ff45f8c67e7f354f991fd6535f7775