首页 > 其他分享 >【cpuidle】cpuidle overview

【cpuidle】cpuidle overview

时间:2023-02-01 19:11:24浏览次数:57  
标签:target overview state cpuidle https 唤醒

什么是cpuidle

cpuidle的进入退出流程

  • boot阶段
    系统启动后,创建idle线程

  • runtime阶段

  1. 判断是否有任务调度
    a. 如果有的话,就去做schedule调度
  2. 判断core有没有被offline,
    a. 如果被offline,则执行cpu die相关流程
  3. 判断有没有使用cpuidle framework
    a. 如果没有使用,则直接走default idle函数,执行wfi
  4. 如果使用了cpuidle framework,那接下来要调用cpuidle_select(),获取target state
    a. cpuidle_select(),根据当前使用的governor,根据系统的pm qos,预期驻留时间/唤醒延时,判断target state
  5. call_cpuidle()调用注册的driver进行target state
    a. driver主要做的事情是,在初始化时,从ACPI/DTS中获取c state信息;调用psci、pcc等通信接口
  6. driver根据target state进入低功耗状态,有可能是idle、retention、shutdown等状态
    a. 如果是retention,会处于wfi,上下文不丢失,唤醒后执行下一条指令
    b. 如果是shutdown,会重新走resume流程

cpuidle enter具体分析

Reference

标签:target,overview,state,cpuidle,https,唤醒
From: https://www.cnblogs.com/lvzh/p/17072062.html

相关文章

  • Modern C++ Overview (综览)
    PartI:Language(第一篇:语言)大局观——简直像个新语言给出一个完整实例,展示(几乎)所有新特性的样貌,让学员从真实代码中一次性窥得(几乎)全豹,得知即将面对的新知和挑战......
  • 5G NR - RLC协议阅读笔记 - Overview
    ​1.写在前面的话诚如通信著名博客sharetechnote作者JaekuRyu在其LTERLC笔记的开场白时说:Personallytome,RLClayerisoneofthetrickestareatounderstandin......
  • Sales Process Overview
    SalesProcessing:  ShippingProcessing:creatingdeliverypicking PostGoodsIssue  BillingProcessing:creatingbillingdocument  ......
  • Spring官方文档——1.概述(Overview)
    本文档基于SpringFramework5.3.24https://docs.spring.io/spring-framework/docs/5.3.24/reference/html/Overviewhistory,designphilosophy,feedback,gettingst......
  • [Unit testing RxJS] Overview: Testing Observables with Marble Testing
    const{TestScheduler}=require("rxjs/testing");const{map,take,delay,mapTo,catchError}=require("rxjs/operators");const{concat,from,of,interva......
  • [Recoil] Overview
    AtomFamilyForexample,youhavelistofelements.Wewanttoavoidthatsingleelemenetgotchanged,wholelistgotre-render.Alsowanttosharethesinglee......
  • 论文笔记:An Overview of Query Optimization in Relational Systems
    论文笔记:AnOverviewofQueryOptimizationinRelationalSystems这篇文章发表于1998年,是数据库系统查询优化领域的入门必读文章。执行计划物理算子构成的树状结构......
  • Overview of Database Link数据库链接概述
    什么是数据库链接?数据库链接是一个指针,它定义了从Oracle数据库服务器到另一个数据库服务器的单向通信路径。对于公共和私有数据库链接,链接指针实际上被定义为数据字典......