提交 d9099163 编写于 作者: H Hui Tang 提交者: zhangchangzhong

sched: fix smart grid usage count

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7D98G
CVE: NA

----------------------------------------

smart_grid_usage_dec() should called when free taskgroup
if the mode is auto.
Signed-off-by: NHui Tang <tanghui20@huawei.com>
Reviewed-by: NZhang Qiao <zhangqiao22@huawei.com>
Signed-off-by: NZhang Changzhong <zhangchangzhong@huawei.com>
上级 373fd236
......@@ -5687,6 +5687,9 @@ static void destroy_auto_affinity(struct task_group *tg)
{
struct auto_affinity *auto_affi = tg->auto_affinity;
if (auto_affi->mode)
smart_grid_usage_dec();
hrtimer_cancel(&auto_affi->period_timer);
free_affinity_domains(&auto_affi->ad);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册