static u8 custom_idle_query(void)
{
return 0;
}
REGISTER_LP_TARGET(custom_lp_target) = {
.name = "custom_lp",
.is_idle = custom_idle_query,
};
该代码定义了一个名为custom_idle_query的函数,它在没有操作时返回0。此外,它注册了一个名为custom_lp的目标,该目标的is_idle属性指向custom_idle_query函数,用于低功耗策略。
static u8 custom_idle_query(void)
{
return 0;
}
REGISTER_LP_TARGET(custom_lp_target) = {
.name = "custom_lp",
.is_idle = custom_idle_query,
};
313
375
312

被折叠的 条评论
为什么被折叠?