sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/driver-api/pm/cpuidlemodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/driver-api/pm/cpuidlemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/driver-api/pm/cpuidlemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/driver-api/pm/cpuidlemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/driver-api/pm/cpuidlemodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/driver-api/pm/cpuidlemodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/driver-api/pm/cpuidle.rsthKubh)}(h4This data file has been placed in the public domain.h]h4This data file has been placed in the public domain.}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhho/srv/docbuild/lib/venvs/build-kernel-docs/lib64/python3.9/site-packages/docutils/parsers/rst/include/isonum.txthKubh)}(hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .h]hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhhhhKubhsubstitution_definition)}(h*.. |amp| unicode:: U+00026 .. AMPERSANDh]h&}hhsbah}(h]h ]h"]ampah$]h&]uh1hhhhKhhhhubh)}(h+.. |apos| unicode:: U+00027 .. APOSTROPHEh]h'}hhsbah}(h]h ]h"]aposah$]h&]uh1hhhhKhhhhubh)}(h).. |ast| unicode:: U+0002A .. ASTERISKh]h*}hhsbah}(h]h ]h"]astah$]h&]uh1hhhhK hhhhubh)}(h+.. |brvbar| unicode:: U+000A6 .. BROKEN BARh]h¦}hjsbah}(h]h ]h"]brvbarah$]h&]uh1hhhhK hhhhubh)}(h0.. |bsol| unicode:: U+0005C .. REVERSE SOLIDUSh]h\}hjsbah}(h]h ]h"]bsolah$]h&]uh1hhhhK hhhhubh)}(h*.. |cent| unicode:: U+000A2 .. CENT SIGNh]h¢}hjsbah}(h]h ]h"]centah$]h&]uh1hhhhK hhhhubh)}(h&.. |colon| unicode:: U+0003A .. COLONh]h:}hj-sbah}(h]h ]h"]colonah$]h&]uh1hhhhK hhhhubh)}(h&.. |comma| unicode:: U+0002C .. COMMAh]h,}hj<sbah}(h]h ]h"]commaah$]h&]uh1hhhhKhhhhubh)}(h... |commat| unicode:: U+00040 .. COMMERCIAL ATh]h@}hjKsbah}(h]h ]h"]commatah$]h&]uh1hhhhKhhhhubh)}(h/.. |copy| unicode:: U+000A9 .. COPYRIGHT SIGNh]h©}hjZsbah}(h]h ]h"]copyah$]h&]uh1hhhhKhhhhubh)}(h... |curren| unicode:: U+000A4 .. CURRENCY SIGNh]h¤}hjisbah}(h]h ]h"]currenah$]h&]uh1hhhhKhhhhubh)}(h0.. |darr| unicode:: U+02193 .. DOWNWARDS ARROWh]h↓}hjxsbah}(h]h ]h"]darrah$]h&]uh1hhhhKhhhhubh)}(h,.. |deg| unicode:: U+000B0 .. DEGREE SIGNh]h°}hjsbah}(h]h ]h"]degah$]h&]uh1hhhhKhhhhubh)}(h... |divide| unicode:: U+000F7 .. DIVISION SIGNh]h÷}hjsbah}(h]h ]h"]divideah$]h&]uh1hhhhKhhhhubh)}(h,.. |dollar| unicode:: U+00024 .. DOLLAR SIGNh]h$}hjsbah}(h]h ]h"]dollarah$]h&]uh1hhhhKhhhhubh)}(h,.. |equals| unicode:: U+0003D .. EQUALS SIGNh]h=}hjsbah}(h]h ]h"]equalsah$]h&]uh1hhhhKhhhhubh)}(h1.. |excl| unicode:: U+00021 .. EXCLAMATION MARKh]h!}hjsbah}(h]h ]h"]exclah$]h&]uh1hhhhKhhhhubh)}(h9.. |frac12| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjsbah}(h]h ]h"]frac12ah$]h&]uh1hhhhKhhhhubh)}(h<.. |frac14| unicode:: U+000BC .. VULGAR FRACTION ONE QUARTERh]h¼}hjsbah}(h]h ]h"]frac14ah$]h&]uh1hhhhKhhhhubh)}(h;.. |frac18| unicode:: U+0215B .. VULGAR FRACTION ONE EIGHTHh]h⅛}hjsbah}(h]h ]h"]frac18ah$]h&]uh1hhhhKhhhhubh)}(h?.. |frac34| unicode:: U+000BE .. VULGAR FRACTION THREE QUARTERSh]h¾}hjsbah}(h]h ]h"]frac34ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac38| unicode:: U+0215C .. VULGAR FRACTION THREE EIGHTHSh]h⅜}hjsbah}(h]h ]h"]frac38ah$]h&]uh1hhhhKhhhhubh)}(h=.. |frac58| unicode:: U+0215D .. VULGAR FRACTION FIVE EIGHTHSh]h⅝}hjsbah}(h]h ]h"]frac58ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac78| unicode:: U+0215E .. VULGAR FRACTION SEVEN EIGHTHSh]h⅞}hj,sbah}(h]h ]h"]frac78ah$]h&]uh1hhhhKhhhhubh)}(h2.. |gt| unicode:: U+0003E .. GREATER-THAN SIGNh]h>}hj;sbah}(h]h ]h"]gtah$]h&]uh1hhhhKhhhhubh)}(h9.. |half| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjJsbah}(h]h ]h"]halfah$]h&]uh1hhhhK hhhhubh)}(h/.. |horbar| unicode:: U+02015 .. HORIZONTAL BARh]h―}hjYsbah}(h]h ]h"]horbarah$]h&]uh1hhhhK!hhhhubh)}(h'.. |hyphen| unicode:: U+02010 .. HYPHENh]h‐}hjhsbah}(h]h ]h"]hyphenah$]h&]uh1hhhhK"hhhhubh)}(h:.. |iexcl| unicode:: U+000A1 .. INVERTED EXCLAMATION MARKh]h¡}hjwsbah}(h]h ]h"]iexclah$]h&]uh1hhhhK#hhhhubh)}(h7.. |iquest| unicode:: U+000BF .. INVERTED QUESTION MARKh]h¿}hjsbah}(h]h ]h"]iquestah$]h&]uh1hhhhK$hhhhubh)}(hJ.. |laquo| unicode:: U+000AB .. LEFT-POINTING DOUBLE ANGLE QUOTATION MARKh]h«}hjsbah}(h]h ]h"]laquoah$]h&]uh1hhhhK%hhhhubh)}(h0.. |larr| unicode:: U+02190 .. LEFTWARDS ARROWh]h←}hjsbah}(h]h ]h"]larrah$]h&]uh1hhhhK&hhhhubh)}(h3.. |lcub| unicode:: U+0007B .. LEFT CURLY BRACKETh]h{}hjsbah}(h]h ]h"]lcubah$]h&]uh1hhhhK'hhhhubh)}(h;.. |ldquo| unicode:: U+0201C .. LEFT DOUBLE QUOTATION MARKh]h“}hjsbah}(h]h ]h"]ldquoah$]h&]uh1hhhhK(hhhhubh)}(h).. |lowbar| unicode:: U+0005F .. LOW LINEh]h_}hjsbah}(h]h ]h"]lowbarah$]h&]uh1hhhhK)hhhhubh)}(h1.. |lpar| unicode:: U+00028 .. LEFT PARENTHESISh]h(}hjsbah}(h]h ]h"]lparah$]h&]uh1hhhhK*hhhhubh)}(h4.. |lsqb| unicode:: U+0005B .. LEFT SQUARE BRACKETh]h[}hjsbah}(h]h ]h"]lsqbah$]h&]uh1hhhhK+hhhhubh)}(h;.. |lsquo| unicode:: U+02018 .. LEFT SINGLE QUOTATION MARKh]h‘}hjsbah}(h]h ]h"]lsquoah$]h&]uh1hhhhK,hhhhubh)}(h/.. |lt| unicode:: U+0003C .. LESS-THAN SIGNh]h<}hj sbah}(h]h ]h"]ltah$]h&]uh1hhhhK-hhhhubh)}(h+.. |micro| unicode:: U+000B5 .. MICRO SIGNh]hµ}hjsbah}(h]h ]h"]microah$]h&]uh1hhhhK.hhhhubh)}(h+.. |middot| unicode:: U+000B7 .. MIDDLE DOTh]h·}hj+sbah}(h]h ]h"]middotah$]h&]uh1hhhhK/hhhhubh)}(h/.. |nbsp| unicode:: U+000A0 .. NO-BREAK SPACEh]h }hj:sbah}(h]h ]h"]nbspah$]h&]uh1hhhhK0hhhhubh)}(h).. |not| unicode:: U+000AC .. NOT SIGNh]h¬}hjIsbah}(h]h ]h"]notah$]h&]uh1hhhhK1hhhhubh)}(h,.. |num| unicode:: U+00023 .. NUMBER SIGNh]h#}hjXsbah}(h]h ]h"]numah$]h&]uh1hhhhK2hhhhubh)}(h).. |ohm| unicode:: U+02126 .. OHM SIGNh]hΩ}hjgsbah}(h]h ]h"]ohmah$]h&]uh1hhhhK3hhhhubh)}(h;.. |ordf| unicode:: U+000AA .. FEMININE ORDINAL INDICATORh]hª}hjvsbah}(h]h ]h"]ordfah$]h&]uh1hhhhK4hhhhubh)}(h<.. |ordm| unicode:: U+000BA .. MASCULINE ORDINAL INDICATORh]hº}hjsbah}(h]h ]h"]ordmah$]h&]uh1hhhhK5hhhhubh)}(h-.. |para| unicode:: U+000B6 .. PILCROW SIGNh]h¶}hjsbah}(h]h ]h"]paraah$]h&]uh1hhhhK6hhhhubh)}(h-.. |percnt| unicode:: U+00025 .. PERCENT SIGNh]h%}hjsbah}(h]h ]h"]percntah$]h&]uh1hhhhK7hhhhubh)}(h*.. |period| unicode:: U+0002E .. FULL STOPh]h.}hjsbah}(h]h ]h"]periodah$]h&]uh1hhhhK8hhhhubh)}(h*.. |plus| unicode:: U+0002B .. PLUS SIGNh]h+}hjsbah}(h]h ]h"]plusah$]h&]uh1hhhhK9hhhhubh)}(h0.. |plusmn| unicode:: U+000B1 .. PLUS-MINUS SIGNh]h±}hjsbah}(h]h ]h"]plusmnah$]h&]uh1hhhhK:hhhhubh)}(h+.. |pound| unicode:: U+000A3 .. POUND SIGNh]h£}hjsbah}(h]h ]h"]poundah$]h&]uh1hhhhK;hhhhubh)}(h... |quest| unicode:: U+0003F .. QUESTION MARKh]h?}hjsbah}(h]h ]h"]questah$]h&]uh1hhhhKhhhhubh)}(h1.. |rarr| unicode:: U+02192 .. RIGHTWARDS ARROWh]h→}hjsbah}(h]h ]h"]rarrah$]h&]uh1hhhhK?hhhhubh)}(h4.. |rcub| unicode:: U+0007D .. RIGHT CURLY BRACKETh]h}}hj*sbah}(h]h ]h"]rcubah$]h&]uh1hhhhK@hhhhubh)}(h<.. |rdquo| unicode:: U+0201D .. RIGHT DOUBLE QUOTATION MARKh]h”}hj9sbah}(h]h ]h"]rdquoah$]h&]uh1hhhhKAhhhhubh)}(h0.. |reg| unicode:: U+000AE .. REGISTERED SIGNh]h®}hjHsbah}(h]h ]h"]regah$]h&]uh1hhhhKBhhhhubh)}(h2.. |rpar| unicode:: U+00029 .. RIGHT PARENTHESISh]h)}hjWsbah}(h]h ]h"]rparah$]h&]uh1hhhhKChhhhubh)}(h5.. |rsqb| unicode:: U+0005D .. RIGHT SQUARE BRACKETh]h]}hjfsbah}(h]h ]h"]rsqbah$]h&]uh1hhhhKDhhhhubh)}(h<.. |rsquo| unicode:: U+02019 .. RIGHT SINGLE QUOTATION MARKh]h’}hjusbah}(h]h ]h"]rsquoah$]h&]uh1hhhhKEhhhhubh)}(h-.. |sect| unicode:: U+000A7 .. SECTION SIGNh]h§}hjsbah}(h]h ]h"]sectah$]h&]uh1hhhhKFhhhhubh)}(h*.. |semi| unicode:: U+0003B .. SEMICOLONh]h;}hjsbah}(h]h ]h"]semiah$]h&]uh1hhhhKGhhhhubh)}(h,.. |shy| unicode:: U+000AD .. SOFT HYPHENh]h­}hjsbah}(h]h ]h"]shyah$]h&]uh1hhhhKHhhhhubh)}(h(.. |sol| unicode:: U+0002F .. SOLIDUSh]h/}hjsbah}(h]h ]h"]solah$]h&]uh1hhhhKIhhhhubh)}(h,.. |sung| unicode:: U+0266A .. EIGHTH NOTEh]h♪}hjsbah}(h]h ]h"]sungah$]h&]uh1hhhhKJhhhhubh)}(h0.. |sup1| unicode:: U+000B9 .. SUPERSCRIPT ONEh]h¹}hjsbah}(h]h ]h"]sup1ah$]h&]uh1hhhhKKhhhhubh)}(h0.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWOh]h²}hjsbah}(h]h ]h"]sup2ah$]h&]uh1hhhhKLhhhhubh)}(h2.. |sup3| unicode:: U+000B3 .. SUPERSCRIPT THREEh]h³}hjsbah}(h]h ]h"]sup3ah$]h&]uh1hhhhKMhhhhubh)}(h4.. |times| unicode:: U+000D7 .. MULTIPLICATION SIGNh]h×}hjsbah}(h]h ]h"]timesah$]h&]uh1hhhhKNhhhhubh)}(h0.. |trade| unicode:: U+02122 .. TRADE MARK SIGNh]h™}hj sbah}(h]h ]h"]tradeah$]h&]uh1hhhhKOhhhhubh)}(h... |uarr| unicode:: U+02191 .. UPWARDS ARROWh]h↑}hjsbah}(h]h ]h"]uarrah$]h&]uh1hhhhKPhhhhubh)}(h... |verbar| unicode:: U+0007C .. VERTICAL LINEh]h|}hj)sbah}(h]h ]h"]verbarah$]h&]uh1hhhhKQhhhhubh)}(h*.. |yen| unicode:: U+000A5 .. YEN SIGN h]h¥}hj8sbah}(h]h ]h"]yenah$]h&]uh1hhhhKRhhhhubhsection)}(hhh](htitle)}(hCPU Idle Time Managementh]hCPU Idle Time Management}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhhhhhKubh field_list)}(hhh](hfield)}(hhh](h field_name)}(h Copyrighth]h Copyright}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjchhhKubh field_body)}(h|copy| 2019 Intel Corporation h]h paragraph)}(h|copy| 2019 Intel Corporationh](h©}(hj~hhhNhNubh 2019 Intel Corporation}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjxubah}(h]h ]h"]h$]h&]uh1jvhjcubeh}(h]h ]h"]h$]h&]uh1jahhhKhj^hhubjb)}(hhh](jg)}(hAuthorh]hAuthor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjhhhKubjw)}(h0Rafael J. Wysocki h]j})}(h.Rafael J. Wysocki h](hRafael J. Wysocki <}(hjhhhNhNubh reference)}(hrafael.j.wysocki@intel.comh]hrafael.j.wysocki@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refuri!mailto:rafael.j.wysocki@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jvhjubeh}(h]h ]h"]h$]h&]uh1jahhhK hj^hhubeh}(h]h ]h"]h$]h&]uh1j\hjIhhhhhKubjH)}(hhh](jM)}(h"CPU Idle Time Management Subsystemh]h"CPU Idle Time Management Subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhKubj})}(hXaEvery time one of the logical CPUs in the system (the entities that appear to fetch and execute instructions: hardware threads, if present, or processor cores) is idle after an interrupt or equivalent wakeup event, which means that there are no tasks to run on it except for the special "idle" task associated with it, there is an opportunity to save energy for the processor that it belongs to. That can be done by making the idle logical CPU stop fetching instructions from memory and putting some of the processor's functional units depended on by it into an idle state in which they will draw less power.h]hXgEvery time one of the logical CPUs in the system (the entities that appear to fetch and execute instructions: hardware threads, if present, or processor cores) is idle after an interrupt or equivalent wakeup event, which means that there are no tasks to run on it except for the special “idle” task associated with it, there is an opportunity to save energy for the processor that it belongs to. That can be done by making the idle logical CPU stop fetching instructions from memory and putting some of the processor’s functional units depended on by it into an idle state in which they will draw less power.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubj})}(hX_However, there may be multiple different idle states that can be used in such a situation in principle, so it may be necessary to find the most suitable one (from the kernel perspective) and ask the processor to use (or "enter") that particular idle state. That is the role of the CPU idle time management subsystem in the kernel, called ``CPUIdle``.h](hXWHowever, there may be multiple different idle states that can be used in such a situation in principle, so it may be necessary to find the most suitable one (from the kernel perspective) and ask the processor to use (or “enter”) that particular idle state. That is the role of the CPU idle time management subsystem in the kernel, called }(hjhhhNhNubhliteral)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubj})}(hX The design of ``CPUIdle`` is modular and based on the code duplication avoidance principle, so the generic code that in principle need not depend on the hardware or platform design details in it is separate from the code that interacts with the hardware. It generally is divided into three categories of functional units: *governors* responsible for selecting idle states to ask the processor to enter, *drivers* that pass the governors' decisions on to the hardware and the *core* providing a common framework for them.h](hThe design of }(hj(hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubhX* is modular and based on the code duplication avoidance principle, so the generic code that in principle need not depend on the hardware or platform design details in it is separate from the code that interacts with the hardware. It generally is divided into three categories of functional units: }(hj(hhhNhNubhemphasis)}(h *governors*h]h governors}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jBhj(ubhF responsible for selecting idle states to ask the processor to enter, }(hj(hhhNhNubjC)}(h *drivers*h]hdrivers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jBhj(ubhA that pass the governors’ decisions on to the hardware and the }(hj(hhhNhNubjC)}(h*core*h]hcore}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jBhj(ubh' providing a common framework for them.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubeh}(h]"cpu-idle-time-management-subsystemah ]h"]"cpu idle time management subsystemah$]h&]uh1jGhjIhhhhhKubjH)}(hhh](jM)}(hCPU Idle Time Governorsh]hCPU Idle Time Governors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhK)ubj})}(hA CPU idle time (``CPUIdle``) governor is a bundle of policy code invoked when one of the logical CPUs in the system turns out to be idle. Its role is to select an idle state to ask the processor to enter in order to save some energy.h](hA CPU idle time (}(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) governor is a bundle of policy code invoked when one of the logical CPUs in the system turns out to be idle. Its role is to select an idle state to ask the processor to enter in order to save some energy.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK+hjhhubj})}(h``CPUIdle`` governors are generic and each of them can be used on any hardware platform that the Linux kernel can run on. For this reason, data structures operated on by them cannot depend on any hardware architecture or platform design details as well.h](j)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh governors are generic and each of them can be used on any hardware platform that the Linux kernel can run on. For this reason, data structures operated on by them cannot depend on any hardware architecture or platform design details as well.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK/hjhhubj})}(hXThe governor itself is represented by a struct cpuidle_governor object containing four callback pointers, :c:member:`enable`, :c:member:`disable`, :c:member:`select`, :c:member:`reflect`, a :c:member:`rating` field described below, and a name (string) used for identifying it.h](hjThe governor itself is represented by a struct cpuidle_governor object containing four callback pointers, }(hjhhhNhNubh)}(h:c:member:`enable`h]j)}(hjh]henable}(hjhhhNhNubah}(h]h ](xrefcc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocdriver-api/pm/cpuidle refdomainjreftypemember refexplicitrefwarn reftargetenableuh1hhhhK4hjubh, }(hjhhhNhNubh)}(h:c:member:`disable`h]j)}(hjh]hdisable}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjdisableuh1hhhhK4hjubh, }(hjhhhNhNubh)}(h:c:member:`select`h]j)}(hj)h]hselect}(hj+hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjselectuh1hhhhK4hjubh, }hjsbh)}(h:c:member:`reflect`h]j)}(hjLh]hreflect}(hjNhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjreflectuh1hhhhK4hjubh, a }(hjhhhNhNubh)}(h:c:member:`rating`h]j)}(hjoh]hrating}(hjqhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjratinguh1hhhhK4hjubhD field described below, and a name (string) used for identifying it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK4hjhhubj})}(hX-For the governor to be available at all, that object needs to be registered with the ``CPUIdle`` core by calling :c:func:`cpuidle_register_governor()` with a pointer to it passed as the argument. If successful, that causes the core to add the governor to the global list of available governors and, if it is the only one in the list (that is, the list was empty before) or the value of its :c:member:`rating` field is greater than the value of that field for the governor currently in use, or the name of the new governor was passed to the kernel as the value of the ``cpuidle.governor=`` command line parameter, the new governor will be used from that point on (there can be only one ``CPUIdle`` governor in use at a time). Also, user space can choose the ``CPUIdle`` governor to use at run time via ``sysfs``.h](hUFor the governor to be available at all, that object needs to be registered with the }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh core by calling }(hjhhhNhNubh)}(h%:c:func:`cpuidle_register_governor()`h]j)}(hjh]hcpuidle_register_governor()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_register_governoruh1hhhhK9hjubh with a pointer to it passed as the argument. If successful, that causes the core to add the governor to the global list of available governors and, if it is the only one in the list (that is, the list was empty before) or the value of its }(hjhhhNhNubh)}(h:c:member:`rating`h]j)}(hjh]hrating}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjratinguh1hhhhK9hjubh field is greater than the value of that field for the governor currently in use, or the name of the new governor was passed to the kernel as the value of the }(hjhhhNhNubj)}(h``cpuidle.governor=``h]hcpuidle.governor=}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha command line parameter, the new governor will be used from that point on (there can be only one }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> governor in use at a time). Also, user space can choose the }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! governor to use at run time via }(hjhhhNhNubj)}(h ``sysfs``h]hsysfs}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK9hjhhubj})}(hOnce registered, ``CPUIdle`` governors cannot be unregistered, so it is not practical to put them into loadable kernel modules.h](hOnce registered, }(hjDhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubhc governors cannot be unregistered, so it is not practical to put them into loadable kernel modules.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKEhjhhubj})}(hTThe interface between ``CPUIdle`` governors and the core consists of four callbacks:h](hThe interface between }(hjdhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh3 governors and the core consists of four callbacks:}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKHhjhhubhdefinition_list)}(hhh](hdefinition_list_item)}(hXQ:c:member:`enable` :: int (*enable) (struct cpuidle_driver *drv, struct cpuidle_device *dev); The role of this callback is to prepare the governor for handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument. The struct cpuidle_driver object pointed to by the ``drv`` argument represents the ``CPUIdle`` driver to be used with that CPU (among other things, it should contain the list of struct cpuidle_state objects representing idle states that the processor holding the given CPU can be asked to enter). It may fail, in which case it is expected to return a negative error code, and that causes the kernel to run the architecture-specific default code for idle CPUs on the CPU in question instead of ``CPUIdle`` until the ``->enable()`` governor callback is invoked for that CPU again. h](hterm)}(h:c:member:`enable`h]h)}(hjh]j)}(hjh]henable}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjenableuh1hhhhK\hjubah}(h]h ]h"]h$]h&]uh1jhhhK\hjubh definition)}(hhh](h literal_block)}(hGint (*enable) (struct cpuidle_driver *drv, struct cpuidle_device *dev);h]hGint (*enable) (struct cpuidle_driver *drv, struct cpuidle_device *dev);}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKNhjubj})}(hXThe role of this callback is to prepare the governor for handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument. The struct cpuidle_driver object pointed to by the ``drv`` argument represents the ``CPUIdle`` driver to be used with that CPU (among other things, it should contain the list of struct cpuidle_state objects representing idle states that the processor holding the given CPU can be asked to enter).h](hThe role of this callback is to prepare the governor for handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the }(hjhhhNhNubj)}(h``dev``h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? argument. The struct cpuidle_driver object pointed to by the }(hjhhhNhNubj)}(h``drv``h]hdrv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh argument represents the }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh driver to be used with that CPU (among other things, it should contain the list of struct cpuidle_state objects representing idle states that the processor holding the given CPU can be asked to enter).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKPhjubj})}(hXIt may fail, in which case it is expected to return a negative error code, and that causes the kernel to run the architecture-specific default code for idle CPUs on the CPU in question instead of ``CPUIdle`` until the ``->enable()`` governor callback is invoked for that CPU again.h](hIt may fail, in which case it is expected to return a negative error code, and that causes the kernel to run the architecture-specific default code for idle CPUs on the CPU in question instead of }(hj hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh until the }(hj hhhNhNubj)}(h``->enable()``h]h ->enable()}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh1 governor callback is invoked for that CPU again.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKXhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK\hjubj)}(hX:c:member:`disable` :: void (*disable) (struct cpuidle_driver *drv, struct cpuidle_device *dev); Called to make the governor stop handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument. It is expected to reverse any changes made by the ``->enable()`` callback when it was last invoked for the target CPU, free all memory allocated by that callback and so on. h](j)}(h:c:member:`disable`h]h)}(hjV h]j)}(hjV h]hdisable}(hj[ hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjX ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjdisableuh1hhhhKihjT ubah}(h]h ]h"]h$]h&]uh1jhhhKihjP ubj)}(hhh](j)}(hIvoid (*disable) (struct cpuidle_driver *drv, struct cpuidle_device *dev);h]hIvoid (*disable) (struct cpuidle_driver *drv, struct cpuidle_device *dev);}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhKahj| ubj})}(hCalled to make the governor stop handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument.h](h~Called to make the governor stop handling the (logical) CPU represented by the struct cpuidle_device object pointed to by the }(hj hhhNhNubj)}(h``dev``h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh argument.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKchj| ubj})}(hIt is expected to reverse any changes made by the ``->enable()`` callback when it was last invoked for the target CPU, free all memory allocated by that callback and so on.h](h2It is expected to reverse any changes made by the }(hj hhhNhNubj)}(h``->enable()``h]h ->enable()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhl callback when it was last invoked for the target CPU, free all memory allocated by that callback and so on.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKghj| ubeh}(h]h ]h"]h$]h&]uh1jhjP ubeh}(h]h ]h"]h$]h&]uh1jhhhKihjhhubj)}(hXs:c:member:`select` :: int (*select) (struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick); Called to select an idle state for the processor holding the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument. The list of idle states to take into consideration is represented by the :c:member:`states` array of struct cpuidle_state objects held by the struct cpuidle_driver object pointed to by the ``drv`` argument (which represents the ``CPUIdle`` driver to be used with the CPU at hand). The value returned by this callback is interpreted as an index into that array (unless it is a negative error code). The ``stop_tick`` argument is used to indicate whether or not to stop the scheduler tick before asking the processor to enter the selected idle state. When the ``bool`` variable pointed to by it (which is set to ``true`` before invoking this callback) is cleared to ``false``, the processor will be asked to enter the selected idle state without stopping the scheduler tick on the given CPU (if the tick has been stopped on that CPU already, however, it will not be restarted before asking the processor to enter the idle state). This callback is mandatory (i.e. the :c:member:`select` callback pointer in struct cpuidle_governor must not be ``NULL`` for the registration of the governor to succeed). h](j)}(h:c:member:`select`h]h)}(hj h]j)}(hj h]hselect}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjselectuh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh](j)}(hgint (*select) (struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick);h]hgint (*select) (struct cpuidle_driver *drv, struct cpuidle_device *dev, bool *stop_tick);}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhKnhj ubj})}(hCalled to select an idle state for the processor holding the (logical) CPU represented by the struct cpuidle_device object pointed to by the ``dev`` argument.h](hCalled to select an idle state for the processor holding the (logical) CPU represented by the struct cpuidle_device object pointed to by the }(hj hhhNhNubj)}(h``dev``h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh argument.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKqhj ubj})}(hXThe list of idle states to take into consideration is represented by the :c:member:`states` array of struct cpuidle_state objects held by the struct cpuidle_driver object pointed to by the ``drv`` argument (which represents the ``CPUIdle`` driver to be used with the CPU at hand). The value returned by this callback is interpreted as an index into that array (unless it is a negative error code).h](hIThe list of idle states to take into consideration is represented by the }(hj6 hhhNhNubh)}(h:c:member:`states`h]j)}(hj@ h]hstates}(hjB hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj> ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKuhj6 ubhb array of struct cpuidle_state objects held by the struct cpuidle_driver object pointed to by the }(hj6 hhhNhNubj)}(h``drv``h]hdrv}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6 ubh argument (which represents the }(hj6 hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6 ubh driver to be used with the CPU at hand). The value returned by this callback is interpreted as an index into that array (unless it is a negative error code).}(hj6 hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKuhj ubj})}(hXThe ``stop_tick`` argument is used to indicate whether or not to stop the scheduler tick before asking the processor to enter the selected idle state. When the ``bool`` variable pointed to by it (which is set to ``true`` before invoking this callback) is cleared to ``false``, the processor will be asked to enter the selected idle state without stopping the scheduler tick on the given CPU (if the tick has been stopped on that CPU already, however, it will not be restarted before asking the processor to enter the idle state).h](hThe }(hj hhhNhNubj)}(h ``stop_tick``h]h stop_tick}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh argument is used to indicate whether or not to stop the scheduler tick before asking the processor to enter the selected idle state. When the }(hj hhhNhNubj)}(h``bool``h]hbool}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, variable pointed to by it (which is set to }(hj hhhNhNubj)}(h``true``h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. before invoking this callback) is cleared to }(hj hhhNhNubj)}(h ``false``h]hfalse}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, the processor will be asked to enter the selected idle state without stopping the scheduler tick on the given CPU (if the tick has been stopped on that CPU already, however, it will not be restarted before asking the processor to enter the idle state).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK|hj ubj})}(hThis callback is mandatory (i.e. the :c:member:`select` callback pointer in struct cpuidle_governor must not be ``NULL`` for the registration of the governor to succeed).h](h%This callback is mandatory (i.e. the }(hj hhhNhNubh)}(h:c:member:`select`h]j)}(hj h]hselect}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjselectuh1hhhhKhj ubh9 callback pointer in struct cpuidle_governor must not be }(hj hhhNhNubj)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh2 for the registration of the governor to succeed).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXN:c:member:`reflect` :: void (*reflect) (struct cpuidle_device *dev, int index); Called to allow the governor to evaluate the accuracy of the idle state selection made by the ``->select()`` callback (when it was invoked last time) and possibly use the result of that to improve the accuracy of idle state selections in the future. h](j)}(h:c:member:`reflect`h]h)}(hj6 h]j)}(hj6 h]hreflect}(hj; hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj8 ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjreflectuh1hhhhKhj4 ubah}(h]h ]h"]h$]h&]uh1jhhhKhj0 ubj)}(hhh](j)}(h8void (*reflect) (struct cpuidle_device *dev, int index);h]h8void (*reflect) (struct cpuidle_device *dev, int index);}hj_ sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhj\ ubj})}(hCalled to allow the governor to evaluate the accuracy of the idle state selection made by the ``->select()`` callback (when it was invoked last time) and possibly use the result of that to improve the accuracy of idle state selections in the future.h](h^Called to allow the governor to evaluate the accuracy of the idle state selection made by the }(hjm hhhNhNubj)}(h``->select()``h]h ->select()}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm ubh callback (when it was invoked last time) and possibly use the result of that to improve the accuracy of idle state selections in the future.}(hjm hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj\ ubeh}(h]h ]h"]h$]h&]uh1jhj0 ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj})}(hX8In addition, ``CPUIdle`` governors are required to take power management quality of service (PM QoS) constraints on the processor wakeup latency into account when selecting idle states. In order to obtain the current effective PM QoS wakeup latency constraint for a given CPU, a ``CPUIdle`` governor is expected to pass the number of the CPU to :c:func:`cpuidle_governor_latency_req()`. Then, the governor's ``->select()`` callback must not return the index of an indle state whose :c:member:`exit_latency` value is greater than the number returned by that function.h](h In addition, }(hj hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhX governors are required to take power management quality of service (PM QoS) constraints on the processor wakeup latency into account when selecting idle states. In order to obtain the current effective PM QoS wakeup latency constraint for a given CPU, a }(hj hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh7 governor is expected to pass the number of the CPU to }(hj hhhNhNubh)}(h(:c:func:`cpuidle_governor_latency_req()`h]j)}(hj h]hcpuidle_governor_latency_req()}(hj hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_governor_latency_requh1hhhhKhj ubh. Then, the governor’s }(hj hhhNhNubj)}(h``->select()``h]h ->select()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh< callback must not return the index of an indle state whose }(hj hhhNhNubh)}(h:c:member:`exit_latency`h]j)}(hj h]h exit_latency}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnj exit_latencyuh1hhhhKhj ubh< value is greater than the number returned by that function.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjhhubeh}(h]cpu-idle-time-governorsah ]h"]cpu idle time governorsah$]h&]uh1jGhjIhhhhhK)ubjH)}(hhh](jM)}(h CPU Idle Time Management Driversh]h CPU Idle Time Management Drivers}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj1 hhhhhKubj})}(h|CPU idle time management (``CPUIdle``) drivers provide an interface between the other parts of ``CPUIdle`` and the hardware.h](hCPU idle time management (}(hjB hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubh:) drivers provide an interface between the other parts of }(hjB hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubh and the hardware.}(hjB hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hXiFirst of all, a ``CPUIdle`` driver has to populate the :c:member:`states` array of struct cpuidle_state objects included in the struct cpuidle_driver object representing it. Going forward this array will represent the list of available idle states that the processor hardware can be asked to enter shared by all of the logical CPUs handled by the given driver.h](hFirst of all, a }(hjt hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt ubh driver has to populate the }(hjt hhhNhNubh)}(h:c:member:`states`h]j)}(hj h]hstates}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhjt ubhX  array of struct cpuidle_state objects included in the struct cpuidle_driver object representing it. Going forward this array will represent the list of available idle states that the processor hardware can be asked to enter shared by all of the logical CPUs handled by the given driver.}(hjt hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hXThe entries in the :c:member:`states` array are expected to be sorted by the value of the :c:member:`target_residency` field in struct cpuidle_state in the ascending order (that is, index 0 should correspond to the idle state with the minimum value of :c:member:`target_residency`). [Since the :c:member:`target_residency` value is expected to reflect the "depth" of the idle state represented by the struct cpuidle_state object holding it, this sorting order should be the same as the ascending sorting order by the idle state "depth".]h](hThe entries in the }(hj hhhNhNubh)}(h:c:member:`states`h]j)}(hj h]hstates}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhj ubh5 array are expected to be sorted by the value of the }(hj hhhNhNubh)}(h:c:member:`target_residency`h]j)}(hj h]htarget_residency}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjtarget_residencyuh1hhhhKhj ubh field in struct cpuidle_state in the ascending order (that is, index 0 should correspond to the idle state with the minimum value of }(hj hhhNhNubh)}(h:c:member:`target_residency`h]j)}(hj h]htarget_residency}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjtarget_residencyuh1hhhhKhj ubh). [Since the }(hj hhhNhNubh)}(h:c:member:`target_residency`h]j)}(hj* h]htarget_residency}(hj, hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj( ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjtarget_residencyuh1hhhhKhj ubh value is expected to reflect the “depth” of the idle state represented by the struct cpuidle_state object holding it, this sorting order should be the same as the ascending sorting order by the idle state “depth”.]}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hThree fields in struct cpuidle_state are used by the existing ``CPUIdle`` governors for computations related to idle state selection:h](h>Three fields in struct cpuidle_state are used by the existing }(hjQ hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ ubh< governors for computations related to idle state selection:}(hjQ hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj)}(hhh](j)}(hX:c:member:`target_residency` Minimum time to spend in this idle state including the time needed to enter it (which may be substantial) to save more energy than could be saved by staying in a shallower idle state for the same amount of time, in microseconds. h](j)}(h:c:member:`target_residency`h]h)}(hjz h]j)}(hjz h]htarget_residency}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj| ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjtarget_residencyuh1hhhhKhjx ubah}(h]h ]h"]h$]h&]uh1jhhhKhjt ubj)}(hhh]j})}(hMinimum time to spend in this idle state including the time needed to enter it (which may be substantial) to save more energy than could be saved by staying in a shallower idle state for the same amount of time, in microseconds.h]hMinimum time to spend in this idle state including the time needed to enter it (which may be substantial) to save more energy than could be saved by staying in a shallower idle state for the same amount of time, in microseconds.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjt ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjq ubj)}(h:c:member:`exit_latency` Maximum time it will take a CPU asking the processor to enter this idle state to start executing the first instruction after a wakeup from it, in microseconds. h](j)}(h:c:member:`exit_latency`h]h)}(hj h]j)}(hj h]h exit_latency}(hj hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnj exit_latencyuh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(hMaximum time it will take a CPU asking the processor to enter this idle state to start executing the first instruction after a wakeup from it, in microseconds.h]hMaximum time it will take a CPU asking the processor to enter this idle state to start executing the first instruction after a wakeup from it, in microseconds.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjq hhubj)}(hX:c:member:`flags` Flags representing idle state properties. Currently, governors only use the ``CPUIDLE_FLAG_POLLING`` flag which is set if the given object does not represent a real idle state, but an interface to a software "loop" that can be used in order to avoid asking the processor to enter any idle state at all. [There are other flags used by the ``CPUIdle`` core in special situations.] h](j)}(h:c:member:`flags`h]h)}(hj h]j)}(hj h]hflags}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjflagsuh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]j})}(hX|Flags representing idle state properties. Currently, governors only use the ``CPUIDLE_FLAG_POLLING`` flag which is set if the given object does not represent a real idle state, but an interface to a software "loop" that can be used in order to avoid asking the processor to enter any idle state at all. [There are other flags used by the ``CPUIdle`` core in special situations.]h](hMFlags representing idle state properties. Currently, governors only use the }(hj5hhhNhNubj)}(h``CPUIDLE_FLAG_POLLING``h]hCPUIDLE_FLAG_POLLING}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh flag which is set if the given object does not represent a real idle state, but an interface to a software “loop” that can be used in order to avoid asking the processor to enter any idle state at all. [There are other flags used by the }(hj5hhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh core in special situations.]}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjq hhubeh}(h]h ]h"]h$]h&]uh1jhj1 hhhhhNubj})}(hThe :c:member:`enter` callback pointer in struct cpuidle_state, which must not be ``NULL``, points to the routine to execute in order to ask the processor to enter this particular idle state:h](hThe }(hjyhhhNhNubh)}(h:c:member:`enter`h]j)}(hjh]henter}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjenteruh1hhhhKhjyubh= callback pointer in struct cpuidle_state, which must not be }(hjyhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubhe, points to the routine to execute in order to ask the processor to enter this particular idle state:}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj)}(havoid (*enter) (struct cpuidle_device *dev, struct cpuidle_driver *drv, int index);h]havoid (*enter) (struct cpuidle_device *dev, struct cpuidle_driver *drv, int index);}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhj1 hhubj})}(hXpThe first two arguments of it point to the struct cpuidle_device object representing the logical CPU running this callback and the struct cpuidle_driver object representing the driver itself, respectively, and the last one is an index of the struct cpuidle_state entry in the driver's :c:member:`states` array representing the idle state to ask the processor to enter.h](hXThe first two arguments of it point to the struct cpuidle_device object representing the logical CPU running this callback and the struct cpuidle_driver object representing the driver itself, respectively, and the last one is an index of the struct cpuidle_state entry in the driver’s }(hjhhhNhNubh)}(h:c:member:`states`h]j)}(hjh]hstates}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhjubhA array representing the idle state to ask the processor to enter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hX{The analogous ``->enter_s2idle()`` callback in struct cpuidle_state is used only for implementing the suspend-to-idle system-wide power management feature. The difference between in and ``->enter()`` is that it must not re-enable interrupts at any point (even temporarily) or attempt to change the states of clock event devices, which the ``->enter()`` callback may do sometimes.h](hThe analogous }(hjhhhNhNubj)}(h``->enter_s2idle()``h]h->enter_s2idle()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback in struct cpuidle_state is used only for implementing the suspend-to-idle system-wide power management feature. The difference between in and }(hjhhhNhNubj)}(h ``->enter()``h]h ->enter()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is that it must not re-enable interrupts at any point (even temporarily) or attempt to change the states of clock event devices, which the }(hjhhhNhNubj)}(h ``->enter()``h]h ->enter()}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback may do sometimes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hXDOnce the :c:member:`states` array has been populated, the number of valid entries in it has to be stored in the :c:member:`state_count` field of the struct cpuidle_driver object representing the driver. Moreover, if any entries in the :c:member:`states` array represent "coupled" idle states (that is, idle states that can only be asked for if multiple related logical CPUs are idle), the :c:member:`safe_state_index` field in struct cpuidle_driver needs to be the index of an idle state that is not "coupled" (that is, one that can be asked for if only one logical CPU is idle).h](h Once the }(hj?hhhNhNubh)}(h:c:member:`states`h]j)}(hjIh]hstates}(hjKhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhj?ubhU array has been populated, the number of valid entries in it has to be stored in the }(hj?hhhNhNubh)}(h:c:member:`state_count`h]j)}(hjlh]h state_count}(hjnhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnj state_countuh1hhhhKhj?ubhe field of the struct cpuidle_driver object representing the driver. Moreover, if any entries in the }(hj?hhhNhNubh)}(h:c:member:`states`h]j)}(hjh]hstates}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhj?ubh array represent “coupled” idle states (that is, idle states that can only be asked for if multiple related logical CPUs are idle), the }(hj?hhhNhNubh)}(h:c:member:`safe_state_index`h]j)}(hjh]hsafe_state_index}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjsafe_state_indexuh1hhhhKhj?ubh field in struct cpuidle_driver needs to be the index of an idle state that is not “coupled” (that is, one that can be asked for if only one logical CPU is idle).}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hIn addition to that, if the given ``CPUIdle`` driver is only going to handle a subset of logical CPUs in the system, the :c:member:`cpumask` field in its struct cpuidle_driver object must point to the set (mask) of CPUs that will be handled by it.h](h"In addition to that, if the given }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL driver is only going to handle a subset of logical CPUs in the system, the }(hjhhhNhNubh)}(h:c:member:`cpumask`h]j)}(hjh]hcpumask}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjcpumaskuh1hhhhKhjubhk field in its struct cpuidle_driver object must point to the set (mask) of CPUs that will be handled by it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hX[A ``CPUIdle`` driver can only be used after it has been registered. If there are no "coupled" idle state entries in the driver's :c:member:`states` array, that can be accomplished by passing the driver's struct cpuidle_driver object to :c:func:`cpuidle_register_driver()`. Otherwise, :c:func:`cpuidle_register()` should be used for this purpose.h](hA }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh{ driver can only be used after it has been registered. If there are no “coupled” idle state entries in the driver’s }(hjhhhNhNubh)}(h:c:member:`states`h]j)}(hj8h]hstates}(hj:hhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhKhjubh[ array, that can be accomplished by passing the driver’s struct cpuidle_driver object to }(hjhhhNhNubh)}(h#:c:func:`cpuidle_register_driver()`h]j)}(hj[h]hcpuidle_register_driver()}(hj]hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_register_driveruh1hhhhKhjubh. Otherwise, }(hjhhhNhNubh)}(h:c:func:`cpuidle_register()`h]j)}(hj~h]hcpuidle_register()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_registeruh1hhhhKhjubh! should be used for this purpose.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hXHowever, it also is necessary to register struct cpuidle_device objects for all of the logical CPUs to be handled by the given ``CPUIdle`` driver with the help of :c:func:`cpuidle_register_device()` after the driver has been registered and :c:func:`cpuidle_register_driver()`, unlike :c:func:`cpuidle_register()`, does not do that automatically. For this reason, the drivers that use :c:func:`cpuidle_register_driver()` to register themselves must also take care of registering the struct cpuidle_device objects as needed, so it is generally recommended to use :c:func:`cpuidle_register()` for ``CPUIdle`` driver registration in all cases.h](hHowever, it also is necessary to register struct cpuidle_device objects for all of the logical CPUs to be handled by the given }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh driver with the help of }(hjhhhNhNubh)}(h#:c:func:`cpuidle_register_device()`h]j)}(hjh]hcpuidle_register_device()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_register_deviceuh1hhhhKhjubh* after the driver has been registered and }(hjhhhNhNubh)}(h#:c:func:`cpuidle_register_driver()`h]j)}(hjh]hcpuidle_register_driver()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_register_driveruh1hhhhKhjubh , unlike }(hjhhhNhNubh)}(h:c:func:`cpuidle_register()`h]j)}(hjh]hcpuidle_register()}(hj hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&3]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_registeruh1hhhhKhjubhI, does not do that automatically. For this reason, the drivers that use }(hjhhhNhNubh)}(h#:c:func:`cpuidle_register_driver()`h]j)}(hj*h]hcpuidle_register_driver()}(hj,hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_register_driveruh1hhhhKhjubh to register themselves must also take care of registering the struct cpuidle_device objects as needed, so it is generally recommended to use }(hjhhhNhNubh)}(h:c:func:`cpuidle_register()`h]j)}(hjMh]hcpuidle_register()}(hjOhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_registeruh1hhhhKhjubh for }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" driver registration in all cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hX$The registration of a struct cpuidle_device object causes the ``CPUIdle`` ``sysfs`` interface to be created and the governor's ``->enable()`` callback to be invoked for the logical CPU represented by it, so it must take place after registering the driver that will handle the CPU in question.h](h>The registration of a struct cpuidle_device object causes the }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubj)}(h ``sysfs``h]hsysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. interface to be created and the governor’s }(hjhhhNhNubj)}(h``->enable()``h]h ->enable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback to be invoked for the logical CPU represented by it, so it must take place after registering the driver that will handle the CPU in question.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhj1 hhubj})}(hX``CPUIdle`` drivers and struct cpuidle_device objects can be unregistered when they are not necessary any more which allows some resources associated with them to be released. Due to dependencies between them, all of the struct cpuidle_device objects representing CPUs handled by the given ``CPUIdle`` driver must be unregistered, with the help of :c:func:`cpuidle_unregister_device()`, before calling :c:func:`cpuidle_unregister_driver()` to unregister the driver. Alternatively, :c:func:`cpuidle_unregister()` can be called to unregister a ``CPUIdle`` driver along with all of the struct cpuidle_device objects representing CPUs handled by it.h](j)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX drivers and struct cpuidle_device objects can be unregistered when they are not necessary any more which allows some resources associated with them to be released. Due to dependencies between them, all of the struct cpuidle_device objects representing CPUs handled by the given }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ driver must be unregistered, with the help of }(hjhhhNhNubh)}(h%:c:func:`cpuidle_unregister_device()`h]j)}(hjh]hcpuidle_unregister_device()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_unregister_deviceuh1hhhhMhjubh, before calling }(hjhhhNhNubh)}(h%:c:func:`cpuidle_unregister_driver()`h]j)}(hjh]hcpuidle_unregister_driver()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_unregister_driveruh1hhhhMhjubh+ to unregister the driver. Alternatively, }(hjhhhNhNubh)}(h:c:func:`cpuidle_unregister()`h]j)}(hj:h]hcpuidle_unregister()}(hj<hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_unregisteruh1hhhhMhjubh can be called to unregister a }(hjhhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ driver along with all of the struct cpuidle_device objects representing CPUs handled by it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhMhj1 hhubj})}(hXC``CPUIdle`` drivers can respond to runtime system configuration changes that lead to modifications of the list of available processor idle states (which can happen, for example, when the system's power source is switched from AC to battery or the other way around). Upon a notification of such a change, a ``CPUIdle`` driver is expected to call :c:func:`cpuidle_pause_and_lock()` to turn ``CPUIdle`` off temporarily and then :c:func:`cpuidle_disable_device()` for all of the struct cpuidle_device objects representing CPUs affected by that change. Next, it can update its :c:member:`states` array in accordance with the new configuration of the system, call :c:func:`cpuidle_enable_device()` for all of the relevant struct cpuidle_device objects and invoke :c:func:`cpuidle_resume_and_unlock()` to allow ``CPUIdle`` to be used again.h](j)}(h ``CPUIdle``h]hCPUIdle}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhX* drivers can respond to runtime system configuration changes that lead to modifications of the list of available processor idle states (which can happen, for example, when the system’s power source is switched from AC to battery or the other way around). Upon a notification of such a change, a }(hjshhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh driver is expected to call }(hjshhhNhNubh)}(h":c:func:`cpuidle_pause_and_lock()`h]j)}(hjh]hcpuidle_pause_and_lock()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_pause_and_lockuh1hhhhM hjsubh to turn }(hjshhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh off temporarily and then }(hjshhhNhNubh)}(h":c:func:`cpuidle_disable_device()`h]j)}(hjh]hcpuidle_disable_device()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_disable_deviceuh1hhhhM hjsubhr for all of the struct cpuidle_device objects representing CPUs affected by that change. Next, it can update its }(hjshhhNhNubh)}(h:c:member:`states`h]j)}(hjh]hstates}(hjhhhNhNubah}(h]h ](jjc-membereh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypemember refexplicitrefwarnjstatesuh1hhhhM hjsubhD array in accordance with the new configuration of the system, call }(hjshhhNhNubh)}(h!:c:func:`cpuidle_enable_device()`h]j)}(hjh]hcpuidle_enable_device()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_enable_deviceuh1hhhhM hjsubhB for all of the relevant struct cpuidle_device objects and invoke }(hjshhhNhNubh)}(h%:c:func:`cpuidle_resume_and_unlock()`h]j)}(hj;h]hcpuidle_resume_and_unlock()}(hj=hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjcpuidle_resume_and_unlockuh1hhhhM hjsubh to allow }(hjshhhNhNubj)}(h ``CPUIdle``h]hCPUIdle}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh to be used again.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhM hj1 hhubeh}(h] cpu-idle-time-management-driversah ]h"] cpu idle time management driversah$]h&]uh1jGhjIhhhhhKubeh}(h]cpu-idle-time-managementah ]h"]cpu idle time managementah$]h&]uh1jGhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jLN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}(hhhhhhj jjjj*jj9j-jHj<jWjKjfjZjujijjxjjjjjjjjjjjjjjjjj jjjj)jj8j,jGj;jVjJjejYjtjhjjwjjjjjjjjjjjjjjjjj jjj j(jj7j+jFj:jUjIjdjXjsjgjjvjjjjjjjjjjjjjjjjj jjj j'jj6j*jEj9jTjHjcjWjrjfjjujjjjjjjjjjjjjjjjjjjj j&jj5j)jDj8usubstitution_names}(amphߌaposhasthbrvbarj bsoljcentj*colonj9commajHcommatjWcopyjfcurrenjudarrjdegjdividejdollarjequalsjexcljfrac12jfrac14jfrac18jfrac34j frac38jfrac58j)frac78j8gtjGhalfjVhorbarjehyphenjtiexcljiquestjlaquojlarrjlcubjldquojlowbarjlparjlsqbjlsquoj ltjmicroj(middotj7nbspjFnotjUnumjdohmjsordfjordmjparajpercntjperiodjplusjplusmnjpoundjquestjquotj raquojrarrj'rcubj6rdquojEregjTrparjcrsqbjrrsquojsectjsemijshyjsoljsungjsup1jsup2jsup3jtimesjtradejuarrj&verbarj5yenjDurefnames}refids}nameids}(jj~jjj. j+ jyjvu nametypes}(jjj. jyuh}(j~jIjjj+ jjvj1 u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log]'Documentation/driver-api/pm/cpuidle.rst(NNNNta decorationNhhub.