欢迎来到天天文库
浏览记录
ID:15501110
大小:1.27 MB
页数:28页
时间:2018-08-03
《linux power management》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、PowerManagementofLinuxkernelBarrySong宋宝华LinuxPM宋宝华SuspendSequence宋宝华ResumeSequence宋宝华Freezer!Pieceofcodethatputstasks(alluserspaceandsomekernelthreads)intoast
2、ateinwhichtheyareknowntodonothing!Whateverrunsnext(e.g.devicedrivers'suspendcallbacks)neednotworryaboutuserspace.!Userspaceisnotavailableduringsystemsuspendandresume(e.g.donotrequestfirmwareorprobedevicesatthosetimes).Detectidleness!Systemsuspendoperate
3、sonthewholesystemWhoknowswhenthewholesystemisnotgoingtobeused?!Onlytheuserknowsthat–Thekernel(oranyindividualpartofit)hasnoidea.–Userspacemayonlyuseveryroughheuristics(e.g.theGUIhasn’tbeenusedforthatmuchtime,sopresumablythesystemwon'tbeusedforawhile)Dev
4、iceDriverResponsibilitiesforsuspend!Devicedriversneedtoaggressivelymanagerequest/releaseofclocksthroughclockframework!Devicedriversshouldconfigureoptimalpowersettings!DevicedriversneedtoregisterwiththeLDMandimplementsuspend()andresume()calls.!Devicedriv
5、erscanspecifyconstraintswhenrequired!Devicedriversneedtoimplementcontextsave/restoreandinteractwiththeappropriateframeworkforthesame.cpufreq&cpuidle!cpuidle-usetomanagetheidlestatesofthecpudependingonrequiredwakeuplatency.OnARM,thisismappedtoSoC-idlesta
6、tes,notjustcpuidlestates(ProcessorCstatesfromcpuidle)!cpufreq-usedtoscalevoltageandfrequencywhenthesystemisbusyBusystates(ProcessorPstatesfromcpufreq))!(oneof)power_supplyclassorpmu-usedtoexportbatteryinformation宋宝华CPUIdle!PutidleCPUs
7、intolow-powerstates(nocodeexecution)–CPUschedulerknowswhenaCPUisidle.–Nextusageinformationfromclockevents.–MaximumacceptablelatencyfromPMQoS.–CPUlow-powerstates(C-states)characteristicsareknown.–Governorsdecidewhatstatetogofor.宋宝华CPUI
8、dle宋宝华DVFS!DynamicVoltageandFrequencyScaling!CPUfreq:DVFSforCPUCore!Devfreq:DVFSforotherdevices–Memory-Interface,Bus,GPU,...宋宝华CPUFreq宋宝华GovernorsofCPUFreq宋宝华
此文档下载收益归作者所有