€•D™Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ(/translations/zh_CN/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/zh_TW/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/pt_BR/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/sp_SP/cpu-freq/cpu-drivers”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒB/var/lib/git/docbuild/linux/Documentation/cpu-freq/cpu-drivers.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ/How to Implement a new CPUFreq Processor Driver”h]”hŒ/How to Implement a new CPUFreq Processor Driver”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒAuthors:”h]”hŒAuthors:”…””}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhŒ block_quote”“”)”}”(hŒ€- Dominik Brodowski - Rafael J. Wysocki - Viresh Kumar ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ#Dominik Brodowski ”h]”hÞ)”}”(hhüh]”(hŒDominik Brodowski <”…””}”(hhþh²hh³Nh´NubhŒ reference”“”)”}”(hŒlinux@brodo.de”h]”hŒlinux@brodo.de”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:linux@brodo.de”uh1jhhþubhŒ>”…””}”(hhþh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hhúubah}”(h]”h ]”h"]”h$]”h&]”uh1høhhõubhù)”}”(hŒ.Rafael J. Wysocki ”h]”hÞ)”}”(hj)h]”(hŒRafael J. Wysocki <”…””}”(hj+h²hh³Nh´Nubj)”}”(hŒrafael.j.wysocki@intel.com”h]”hŒrafael.j.wysocki@intel.com”…””}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œ!mailto:rafael.j.wysocki@intel.com”uh1jhj+ubhŒ>”…””}”(hj+h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hj'ubah}”(h]”h ]”h"]”h$]”h&]”uh1høhhõubhù)”}”(hŒ'Viresh Kumar ”h]”hÞ)”}”(hŒ&Viresh Kumar ”h]”(hŒViresh Kumar <”…””}”(hjVh²hh³Nh´Nubj)”}”(hŒviresh.kumar@linaro.org”h]”hŒviresh.kumar@linaro.org”…””}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:viresh.kumar@linaro.org”uh1jhjVubhŒ>”…””}”(hjVh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hjRubah}”(h]”h ]”h"]”h$]”h&]”uh1høhhõubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1hóh³hÇh´K hhïubah}”(h]”h ]”h"]”h$]”h&]”uh1híh³hÇh´K hhÊh²hubh¶)”}”(hŒðContents 1. What To Do? 1.1 Initialization 1.2 Per-CPU Initialization 1.3 verify 1.4 target/target_index or setpolicy? 1.5 target/target_index 1.6 setpolicy 1.7 get_intermediate and target_intermediate 2. Frequency Table Helpers”h]”hŒðContents 1. What To Do? 1.1 Initialization 1.2 Per-CPU Initialization 1.3 verify 1.4 target/target_index or setpolicy? 1.5 target/target_index 1.6 setpolicy 1.7 get_intermediate and target_intermediate 2. Frequency Table Helpers”…””}”hjŒsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1hµhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ1. What To Do?”h]”hŒ1. What To Do?”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjšh²hh³hÇh´KubhÞ)”}”(hŒ£So, you just got a brand-new CPU / chipset with datasheets and want to add cpufreq support for this CPU / chipset? Great. Here are some hints on what is necessary:”h]”hŒ£So, you just got a brand-new CPU / chipset with datasheets and want to add cpufreq support for this CPU / chipset? Great. Here are some hints on what is necessary:”…””}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjšh²hubhÉ)”}”(hhh]”(hÎ)”}”(hŒ1.1 Initialization”h]”hŒ1.1 Initialization”…””}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¹h²hh³hÇh´K%ubhÞ)”}”(hŒíFirst of all, in an __initcall level 7 (module_init()) or later function check whether this kernel runs on the right CPU and the right chipset. If so, register a struct cpufreq_driver with the CPUfreq core using cpufreq_register_driver()”h]”hŒíFirst of all, in an __initcall level 7 (module_init()) or later function check whether this kernel runs on the right CPU and the right chipset. If so, register a struct cpufreq_driver with the CPUfreq core using cpufreq_register_driver()”…””}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K'hj¹h²hubhÞ)”}”(hŒ.What shall this struct cpufreq_driver contain?”h]”hŒ.What shall this struct cpufreq_driver contain?”…””}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K,hj¹h²hubhî)”}”(hŒð.name - The name of this driver. .init - A pointer to the per-policy initialization function. .verify - A pointer to a "verification" function. .setpolicy _or_ .fast_switch _or_ .target _or_ .target_index - See below on the differences. ”h]”(hÞ)”}”(hŒ .name - The name of this driver.”h]”hŒ .name - The name of this driver.”…””}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K.hjæubhÞ)”}”(hŒ<.init - A pointer to the per-policy initialization function.”h]”hŒ<.init - A pointer to the per-policy initialization function.”…””}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K0hjæubhÞ)”}”(hŒ1.verify - A pointer to a "verification" function.”h]”hŒ5.verify - A pointer to a “verification†function.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K2hjæubhÞ)”}”(hŒ\.setpolicy _or_ .fast_switch _or_ .target _or_ .target_index - See below on the differences.”h]”hŒ\.setpolicy _or_ .fast_switch _or_ .target _or_ .target_index - See below on the differences.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K4hjæubeh}”(h]”h ]”h"]”h$]”h&]”uh1híh³hÇh´K.hj¹h²hubhÞ)”}”(hŒAnd optionally”h]”hŒAnd optionally”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K7hj¹h²hubhî)”}”(hX%.flags - Hints for the cpufreq core. .driver_data - cpufreq driver specific data. .get_intermediate and target_intermediate - Used to switch to stable frequency while changing CPU frequency. .get - Returns current frequency of the CPU. .bios_limit - Returns HW/BIOS max frequency limitations for the CPU. .exit - A pointer to a per-policy cleanup function called during CPU_POST_DEAD phase of cpu hotplug process. .suspend - A pointer to a per-policy suspend function which is called with interrupts disabled and _after_ the governor is stopped for the policy. .resume - A pointer to a per-policy resume function which is called with interrupts disabled and _before_ the governor is started again. .ready - A pointer to a per-policy ready function which is called after the policy is fully initialized. .attr - A pointer to a NULL-terminated list of "struct freq_attr" which allow to export values to sysfs. .boost_enabled - If set, boost frequencies are enabled. .set_boost - A pointer to a per-policy function to enable/disable boost frequencies. ”h]”(hÞ)”}”(hŒ$.flags - Hints for the cpufreq core.”h]”hŒ$.flags - Hints for the cpufreq core.”…””}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K9hj6ubhÞ)”}”(hŒ,.driver_data - cpufreq driver specific data.”h]”hŒ,.driver_data - cpufreq driver specific data.”…””}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K;hj6ubhÞ)”}”(hŒl.get_intermediate and target_intermediate - Used to switch to stable frequency while changing CPU frequency.”h]”hŒl.get_intermediate and target_intermediate - Used to switch to stable frequency while changing CPU frequency.”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K=hj6ubhÞ)”}”(hŒ,.get - Returns current frequency of the CPU.”h]”hŒ,.get - Returns current frequency of the CPU.”…””}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K@hj6ubhÞ)”}”(hŒD.bios_limit - Returns HW/BIOS max frequency limitations for the CPU.”h]”hŒD.bios_limit - Returns HW/BIOS max frequency limitations for the CPU.”…””}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KBhj6ubhÞ)”}”(hŒl.exit - A pointer to a per-policy cleanup function called during CPU_POST_DEAD phase of cpu hotplug process.”h]”hŒl.exit - A pointer to a per-policy cleanup function called during CPU_POST_DEAD phase of cpu hotplug process.”…””}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KDhj6ubhÞ)”}”(hŒ’.suspend - A pointer to a per-policy suspend function which is called with interrupts disabled and _after_ the governor is stopped for the policy.”h]”hŒ’.suspend - A pointer to a per-policy suspend function which is called with interrupts disabled and _after_ the governor is stopped for the policy.”…””}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KGhj6ubhÞ)”}”(hŒˆ.resume - A pointer to a per-policy resume function which is called with interrupts disabled and _before_ the governor is started again.”h]”hŒˆ.resume - A pointer to a per-policy resume function which is called with interrupts disabled and _before_ the governor is started again.”…””}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KKhj6ubhÞ)”}”(hŒh.ready - A pointer to a per-policy ready function which is called after the policy is fully initialized.”h]”hŒh.ready - A pointer to a per-policy ready function which is called after the policy is fully initialized.”…””}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KNhj6ubhÞ)”}”(hŒh.attr - A pointer to a NULL-terminated list of "struct freq_attr" which allow to export values to sysfs.”h]”hŒl.attr - A pointer to a NULL-terminated list of “struct freq_attr†which allow to export values to sysfs.”…””}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KQhj6ubhÞ)”}”(hŒ7.boost_enabled - If set, boost frequencies are enabled.”h]”hŒ7.boost_enabled - If set, boost frequencies are enabled.”…””}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KThj6ubhÞ)”}”(hŒT.set_boost - A pointer to a per-policy function to enable/disable boost frequencies.”h]”hŒT.set_boost - A pointer to a per-policy function to enable/disable boost frequencies.”…””}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KVhj6ubeh}”(h]”h ]”h"]”h$]”h&]”uh1híh³hÇh´K9hj¹h²hubeh}”(h]”Œinitialization”ah ]”h"]”Œ1.1 initialization”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K%ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ1.2 Per-CPU Initialization”h]”hŒ1.2 Per-CPU Initialization”…””}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjðh²hh³hÇh´K[ubhÞ)”}”(hX™Whenever a new CPU is registered with the device model, or after the cpufreq driver registers itself, the per-policy initialization function cpufreq_driver.init is called if no cpufreq policy existed for the CPU. Note that the .init() and .exit() routines are called only once for the policy and not for each CPU managed by the policy. It takes a ``struct cpufreq_policy *policy`` as argument. What to do now?”h]”(hX[Whenever a new CPU is registered with the device model, or after the cpufreq driver registers itself, the per-policy initialization function cpufreq_driver.init is called if no cpufreq policy existed for the CPU. Note that the .init() and .exit() routines are called only once for the policy and not for each CPU managed by the policy. It takes a ”…””}”(hjh²hh³Nh´NubhŒliteral”“”)”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjubhŒ as argument. What to do now?”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K]hjðh²hubhÞ)”}”(hŒ7If necessary, activate the CPUfreq support on your CPU.”h]”hŒ7If necessary, activate the CPUfreq support on your CPU.”…””}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kdhjðh²hubhÞ)”}”(hŒ3Then, the driver must fill in the following values:”h]”hŒ3Then, the driver must fill in the following values:”…””}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kfhjðh²hubhŒtable”“”)”}”(hhh]”hŒtgroup”“”)”}”(hhh]”(hŒcolspec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K#uh1jIhjFubjJ)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K&uh1jIhjFubhŒtbody”“”)”}”(hhh]”(hŒrow”“”)”}”(hhh]”(hŒentry”“”)”}”(hhh]”hÞ)”}”(hŒ7policy->cpuinfo.min_freq _and_ policy->cpuinfo.max_freq”h]”hŒ7policy->cpuinfo.min_freq _and_ policy->cpuinfo.max_freq”…””}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kihjkubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfubjj)”}”(hhh]”hÞ)”}”(hŒIthe minimum and maximum frequency (in kHz) which is supported by this CPU”h]”hŒIthe minimum and maximum frequency (in kHz) which is supported by this CPU”…””}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kjhj‚ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfubeh}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(hhh]”(jj)”}”(hhh]”hÞ)”}”(hŒ"policy->cpuinfo.transition_latency”h]”hŒ"policy->cpuinfo.transition_latency”…””}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Knhj¢ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjŸubjj)”}”(hhh]”hÞ)”}”(hŒNthe time it takes on this CPU to switch between two frequencies in nanoseconds”h]”hŒNthe time it takes on this CPU to switch between two frequencies in nanoseconds”…””}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Knhj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjŸubeh}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(hhh]”(jj)”}”(hhh]”hÞ)”}”(hŒ policy->cur”h]”hŒ policy->cur”…””}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KrhjÙubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjÖubjj)”}”(hhh]”hÞ)”}”(hŒmin, policy->max, policy->policy and, if necessary, policy->governor”h]”hŒLpolicy->min, policy->max, policy->policy and, if necessary, policy->governor”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kuhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jihj ubjj)”}”(hhh]”hÞ)”}”(hŒÁmust contain the "default policy" for this CPU. A few moments later, cpufreq_driver.verify and either cpufreq_driver.setpolicy or cpufreq_driver.target/target_index is called with these values.”h]”hŒÅmust contain the “default policy†for this CPU. A few moments later, cpufreq_driver.verify and either cpufreq_driver.setpolicy or cpufreq_driver.target/target_index is called with these values.”…””}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kxhj'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(hhh]”(jj)”}”(hhh]”hÞ)”}”(hŒ policy->cpus”h]”hŒ policy->cpus”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjGubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjDubjj)”}”(hhh]”hÞ)”}”(hŒŠUpdate this with the masks of the (online + offline) CPUs that do DVFS along with this CPU (i.e. that share clock/voltage rails with it).”h]”hŒŠUpdate this with the masks of the (online + offline) CPUs that do DVFS along with this CPU (i.e. that share clock/voltage rails with it).”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj^ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjDubeh}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hjFubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1jDhjAubah}”(h]”h ]”h"]”h$]”h&]”uh1j?hjðh²hh³hÇh´NubhÞ)”}”(hŒ©For setting some of these values (cpuinfo.min[max]_freq, policy->min[max]), the frequency table helpers might be helpful. See the section 2 for more information on them.”h]”hŒ©For setting some of these values (cpuinfo.min[max]_freq, policy->min[max]), the frequency table helpers might be helpful. See the section 2 for more information on them.”…””}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K…hjðh²hubeh}”(h]”Œper-cpu-initialization”ah ]”h"]”Œ1.2 per-cpu initialization”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K[ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ 1.3 verify”h]”hŒ 1.3 verify”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¤h²hh³hÇh´K‹ubhÞ)”}”(hXˆWhen the user decides a new policy (consisting of "policy,governor,min,max") shall be set, this policy must be validated so that incompatible values can be corrected. For verifying these values cpufreq_verify_within_limits(``struct cpufreq_policy *policy``, ``unsigned int min_freq``, ``unsigned int max_freq``) function might be helpful. See section 2 for details on frequency table helpers.”h]”(hŒãWhen the user decides a new policy (consisting of “policy,governor,min,maxâ€) shall be set, this policy must be validated so that incompatible values can be corrected. For verifying these values cpufreq_verify_within_limits(”…””}”(hjµh²hh³Nh´Nubj )”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjµubhŒ, ”…””}”(hjµh²hh³Nh´Nubj )”}”(hŒ``unsigned int min_freq``”h]”hŒunsigned int min_freq”…””}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjµubhŒ, ”…””}”(hjµh²hh³Nh´Nubj )”}”(hŒ``unsigned int max_freq``”h]”hŒunsigned int max_freq”…””}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjµubhŒR) function might be helpful. See section 2 for details on frequency table helpers.”…””}”(hjµh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj¤h²hubhÞ)”}”(hŒÔYou need to make sure that at least one valid frequency (or operating range) is within policy->min and policy->max. If necessary, increase policy->max first, and only if this is no solution, decrease policy->min.”h]”hŒÔYou need to make sure that at least one valid frequency (or operating range) is within policy->min and policy->max. If necessary, increase policy->max first, and only if this is no solution, decrease policy->min.”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K”hj¤h²hubeh}”(h]”Œverify”ah ]”h"]”Œ 1.3 verify”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K‹ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ71.4 target or target_index or setpolicy or fast_switch?”h]”hŒ71.4 target or target_index or setpolicy or fast_switch?”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´KšubhÞ)”}”(hŒ×Most cpufreq drivers or even most cpu frequency scaling algorithms only allow the CPU frequency to be set to predefined fixed values. For these, you use the ->target(), ->target_index() or ->fast_switch() callbacks.”h]”hŒ×Most cpufreq drivers or even most cpu frequency scaling algorithms only allow the CPU frequency to be set to predefined fixed values. For these, you use the ->target(), ->target_index() or ->fast_switch() callbacks.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kœhjh²hubhÞ)”}”(hŒ…Some cpufreq capable processors switch the frequency between certain limits on their own. These shall use the ->setpolicy() callback.”h]”hŒ…Some cpufreq capable processors switch the frequency between certain limits on their own. These shall use the ->setpolicy() callback.”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¡hjh²hubeh}”(h]”Œ2target-or-target-index-or-setpolicy-or-fast-switch”ah ]”h"]”Œ71.4 target or target_index or setpolicy or fast_switch?”ah$]”h&]”uh1hÈhjšh²hh³hÇh´KšubhÉ)”}”(hhh]”(hÎ)”}”(hŒ1.5. target/target_index”h]”hŒ1.5. target/target_index”…””}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjDh²hh³hÇh´K¦ubhÞ)”}”(hŒŠThe target_index call has two arguments: ``struct cpufreq_policy *policy``, and ``unsigned int`` index (into the exposed frequency table).”h]”(hŒ)The target_index call has two arguments: ”…””}”(hjUh²hh³Nh´Nubj )”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjUubhŒ, and ”…””}”(hjUh²hh³Nh´Nubj )”}”(hŒ``unsigned int``”h]”hŒ unsigned int”…””}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjUubhŒ* index (into the exposed frequency table).”…””}”(hjUh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¨hjDh²hubhÞ)”}”(hŒ‡The CPUfreq driver must set the new frequency when called here. The actual frequency must be determined by freq_table[index].frequency.”h]”hŒ‡The CPUfreq driver must set the new frequency when called here. The actual frequency must be determined by freq_table[index].frequency.”…””}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K«hjDh²hubhÞ)”}”(hŒ“It should always restore to earlier frequency (i.e. policy->restore_freq) in case of errors, even if we switched to intermediate frequency earlier.”h]”hŒ“It should always restore to earlier frequency (i.e. policy->restore_freq) in case of errors, even if we switched to intermediate frequency earlier.”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K®hjDh²hubeh}”(h]”Œtarget-target-index”ah ]”h"]”Œ1.5. target/target_index”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K¦ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ Deprecated”h]”hŒ Deprecated”…””}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj«h²hh³hÇh´K²ubhÞ)”}”(hŒ}The target call has three arguments: ``struct cpufreq_policy *policy``, unsigned int target_frequency, unsigned int relation.”h]”(hŒ%The target call has three arguments: ”…””}”(hj¼h²hh³Nh´Nubj )”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj¼ubhŒ7, unsigned int target_frequency, unsigned int relation.”…””}”(hj¼h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K³hj«h²hubhÞ)”}”(hŒ‚The CPUfreq driver must set the new frequency when called here. The actual frequency must be determined using the following rules:”h]”hŒ‚The CPUfreq driver must set the new frequency when called here. The actual frequency must be determined using the following rules:”…””}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¶hj«h²hubhô)”}”(hhh]”(hù)”}”(hŒkeep close to "target_freq"”h]”hÞ)”}”(hjïh]”hŒkeep close to “target_freq—…””}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¹hjíubah}”(h]”h ]”h"]”h$]”h&]”uh1høhjêh²hh³hÇh´Nubhù)”}”(hŒ>policy->min <= new_freq <= policy->max (THIS MUST BE VALID!!!)”h]”hÞ)”}”(hjh]”hŒ>policy->min <= new_freq <= policy->max (THIS MUST BE VALID!!!)”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kºhjubah}”(h]”h ]”h"]”h$]”h&]”uh1høhjêh²hh³hÇh´Nubhù)”}”(hŒzif relation==CPUFREQ_REL_L, try to select a new_freq higher than or equal target_freq. ("L for lowest, but no lower than")”h]”hÞ)”}”(hŒzif relation==CPUFREQ_REL_L, try to select a new_freq higher than or equal target_freq. ("L for lowest, but no lower than")”h]”hŒ~if relation==CPUFREQ_REL_L, try to select a new_freq higher than or equal target_freq. (“L for lowest, but no lower thanâ€)”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K»hjubah}”(h]”h ]”h"]”h$]”h&]”uh1høhjêh²hh³hÇh´Nubhù)”}”(hŒ|if relation==CPUFREQ_REL_H, try to select a new_freq lower than or equal target_freq. ("H for highest, but no higher than") ”h]”hÞ)”}”(hŒ{if relation==CPUFREQ_REL_H, try to select a new_freq lower than or equal target_freq. ("H for highest, but no higher than")”h]”hŒif relation==CPUFREQ_REL_H, try to select a new_freq lower than or equal target_freq. (“H for highest, but no higher thanâ€)”…””}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K½hj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1høhjêh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j„j…uh1hóh³hÇh´K¹hj«h²hubhÞ)”}”(hŒSHere again the frequency table helper might assist you - see section 2 for details.”h]”hŒSHere again the frequency table helper might assist you - see section 2 for details.”…””}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÀhj«h²hubeh}”(h]”Œ deprecated”ah ]”h"]”Œ deprecated”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K²ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ1.6. fast_switch”h]”hŒ1.6. fast_switch”…””}”(hjjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjgh²hh³hÇh´KÄubhÞ)”}”(hŒöThis function is used for frequency switching from scheduler's context. Not all drivers are expected to implement it, as sleeping from within this callback isn't allowed. This callback must be highly optimized to do switching as fast as possible.”h]”hŒúThis function is used for frequency switching from scheduler’s context. Not all drivers are expected to implement it, as sleeping from within this callback isn’t allowed. This callback must be highly optimized to do switching as fast as possible.”…””}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÆhjgh²hubhÞ)”}”(hŒiThis function has two arguments: ``struct cpufreq_policy *policy`` and ``unsigned int target_frequency``.”h]”(hŒ!This function has two arguments: ”…””}”(hj†h²hh³Nh´Nubj )”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj†ubhŒ and ”…””}”(hj†h²hh³Nh´Nubj )”}”(hŒ!``unsigned int target_frequency``”h]”hŒunsigned int target_frequency”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj†ubhŒ.”…””}”(hj†h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KËhjgh²hubeh}”(h]”Œ fast-switch”ah ]”h"]”Œ1.6. fast_switch”ah$]”h&]”uh1hÈhjšh²hh³hÇh´KÄubhÉ)”}”(hhh]”(hÎ)”}”(hŒ 1.7 setpolicy”h]”hŒ 1.7 setpolicy”…””}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÀh²hh³hÇh´KÐubhÞ)”}”(hXÏThe setpolicy call only takes a ``struct cpufreq_policy *policy`` as argument. You need to set the lower limit of the in-processor or in-chipset dynamic frequency switching to policy->min, the upper limit to policy->max, and -if supported- select a performance-oriented setting when policy->policy is CPUFREQ_POLICY_PERFORMANCE, and a powersaving-oriented setting when CPUFREQ_POLICY_POWERSAVE. Also check the reference implementation in drivers/cpufreq/longrun.c”h]”(hŒ The setpolicy call only takes a ”…””}”(hjÑh²hh³Nh´Nubj )”}”(hŒ!``struct cpufreq_policy *policy``”h]”hŒstruct cpufreq_policy *policy”…””}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjÑubhXŽ as argument. You need to set the lower limit of the in-processor or in-chipset dynamic frequency switching to policy->min, the upper limit to policy->max, and -if supported- select a performance-oriented setting when policy->policy is CPUFREQ_POLICY_PERFORMANCE, and a powersaving-oriented setting when CPUFREQ_POLICY_POWERSAVE. Also check the reference implementation in drivers/cpufreq/longrun.c”…””}”(hjÑh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÒhjÀh²hubeh}”(h]”Œ setpolicy”ah ]”h"]”Œ 1.7 setpolicy”ah$]”h&]”uh1hÈhjšh²hh³hÇh´KÐubhÉ)”}”(hhh]”(hÎ)”}”(hŒ,1.8 get_intermediate and target_intermediate”h]”hŒ,1.8 get_intermediate and target_intermediate”…””}”(hjüh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjùh²hh³hÇh´KÛubhÞ)”}”(hŒJOnly for drivers with target_index() and CPUFREQ_ASYNC_NOTIFICATION unset.”h]”hŒJOnly for drivers with target_index() and CPUFREQ_ASYNC_NOTIFICATION unset.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÝhjùh²hubhÞ)”}”(hXQget_intermediate should return a stable intermediate frequency platform wants to switch to, and target_intermediate() should set CPU to that frequency, before jumping to the frequency corresponding to 'index'. Core will take care of sending notifications and driver doesn't have to handle them in target_intermediate() or target_index().”h]”hXWget_intermediate should return a stable intermediate frequency platform wants to switch to, and target_intermediate() should set CPU to that frequency, before jumping to the frequency corresponding to ‘index’. Core will take care of sending notifications and driver doesn’t have to handle them in target_intermediate() or target_index().”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kßhjùh²hubhÞ)”}”(hŒ¼Drivers can return '0' from get_intermediate() in case they don't wish to switch to intermediate frequency for some target frequency. In that case core will directly call ->target_index().”h]”hŒÂDrivers can return ‘0’ from get_intermediate() in case they don’t wish to switch to intermediate frequency for some target frequency. In that case core will directly call ->target_index().”…””}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kåhjùh²hubhÞ)”}”(hŒ|NOTE: ->target_index() should restore to policy->restore_freq in case of failures as core would send notifications for that.”h]”hŒ|NOTE: ->target_index() should restore to policy->restore_freq in case of failures as core would send notifications for that.”…””}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kéhjùh²hubeh}”(h]”Œ(get-intermediate-and-target-intermediate”ah ]”h"]”Œ,1.8 get_intermediate and target_intermediate”ah$]”h&]”uh1hÈhjšh²hh³hÇh´KÛubeh}”(h]”Œ what-to-do”ah ]”h"]”Œ1. what to do?”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ2. Frequency Table Helpers”h]”hŒ2. Frequency Table Helpers”…””}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjRh²hh³hÇh´KîubhÞ)”}”(hXáAs most cpufreq processors only allow for being set to a few specific frequencies, a "frequency table" with some functions might assist in some work of the processor driver. Such a "frequency table" consists of an array of struct cpufreq_frequency_table entries, with driver specific values in "driver_data", the corresponding frequency in "frequency" and flags set. At the end of the table, you need to add a cpufreq_frequency_table entry with frequency set to CPUFREQ_TABLE_END. And if you want to skip one entry in the table, set the frequency to CPUFREQ_ENTRY_INVALID. The entries don't need to be in sorted in any particular order, but if they are cpufreq core will do DVFS a bit quickly for them as search for best match is faster.”h]”hXóAs most cpufreq processors only allow for being set to a few specific frequencies, a “frequency table†with some functions might assist in some work of the processor driver. Such a “frequency table†consists of an array of struct cpufreq_frequency_table entries, with driver specific values in “driver_dataâ€, the corresponding frequency in “frequency†and flags set. At the end of the table, you need to add a cpufreq_frequency_table entry with frequency set to CPUFREQ_TABLE_END. And if you want to skip one entry in the table, set the frequency to CPUFREQ_ENTRY_INVALID. The entries don’t need to be in sorted in any particular order, but if they are cpufreq core will do DVFS a bit quickly for them as search for best match is faster.”…””}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KðhjRh²hubhÞ)”}”(hŒThe cpufreq table is verified automatically by the core if the policy contains a valid pointer in its policy->freq_table field.”h]”hŒThe cpufreq table is verified automatically by the core if the policy contains a valid pointer in its policy->freq_table field.”…””}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KühjRh²hubhÞ)”}”(hŒ¸cpufreq_frequency_table_verify() assures that at least one valid frequency is within policy->min and policy->max, and all other criteria are met. This is helpful for the ->verify call.”h]”hŒ¸cpufreq_frequency_table_verify() assures that at least one valid frequency is within policy->min and policy->max, and all other criteria are met. This is helpful for the ->verify call.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÿhjRh²hubhÞ)”}”(hŒücpufreq_frequency_table_target() is the corresponding frequency table helper for the ->target stage. Just pass the values to this function, and this function returns the of the frequency table entry which contains the frequency the CPU shall be set to.”h]”hŒücpufreq_frequency_table_target() is the corresponding frequency table helper for the ->target stage. Just pass the values to this function, and this function returns the of the frequency table entry which contains the frequency the CPU shall be set to.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjRh²hubhÞ)”}”(hŒKThe following macros can be used as iterators over cpufreq_frequency_table:”h]”hŒKThe following macros can be used as iterators over cpufreq_frequency_table:”…””}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjRh²hubhÞ)”}”(hŒRcpufreq_for_each_entry(pos, table) - iterates over all entries of frequency table.”h]”hŒRcpufreq_for_each_entry(pos, table) - iterates over all entries of frequency table.”…””}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjRh²hubhÞ)”}”(hXcpufreq_for_each_valid_entry(pos, table) - iterates over all entries, excluding CPUFREQ_ENTRY_INVALID frequencies. Use arguments "pos" - a ``cpufreq_frequency_table *`` as a loop cursor and "table" - the ``cpufreq_frequency_table *`` you want to iterate over.”h]”(hŒcpufreq_for_each_valid_entry(pos, table) - iterates over all entries, excluding CPUFREQ_ENTRY_INVALID frequencies. Use arguments “pos†- a ”…””}”(hj·h²hh³Nh´Nubj )”}”(hŒ``cpufreq_frequency_table *``”h]”hŒcpufreq_frequency_table *”…””}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj·ubhŒ( as a loop cursor and “table†- the ”…””}”(hj·h²hh³Nh´Nubj )”}”(hŒ``cpufreq_frequency_table *``”h]”hŒcpufreq_frequency_table *”…””}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj·ubhŒ you want to iterate over.”…””}”(hj·h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjRh²hubhÞ)”}”(hŒ For example::”h]”hŒ For example:”…””}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjRh²hubhŒ literal_block”“”)”}”(hŒ­struct cpufreq_frequency_table *pos, *driver_freq_table; cpufreq_for_each_entry(pos, driver_freq_table) { /* Do something with pos */ pos->frequency = ... }”h]”hŒ­struct cpufreq_frequency_table *pos, *driver_freq_table; cpufreq_for_each_entry(pos, driver_freq_table) { /* Do something with pos */ pos->frequency = ... }”…””}”hjùsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j÷h³hÇh´MhjRh²hubhÞ)”}”(hŒØIf you need to work with the position of pos within driver_freq_table, do not subtract the pointers, as it is quite costly. Instead, use the macros cpufreq_for_each_entry_idx() and cpufreq_for_each_valid_entry_idx().”h]”hŒØIf you need to work with the position of pos within driver_freq_table, do not subtract the pointers, as it is quite costly. Instead, use the macros cpufreq_for_each_entry_idx() and cpufreq_for_each_valid_entry_idx().”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjRh²hubeh}”(h]”Œfrequency-table-helpers”ah ]”h"]”Œ2. frequency table helpers”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kîubeh}”(h]”Œ/how-to-implement-a-new-cpufreq-processor-driver”ah ]”h"]”Œ/how to implement a new cpufreq processor driver”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”jiŒfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jGŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j"jjOjLjíjêj¡jžj j jAj>j¨j¥jdjaj½jºjöjójGjDjjuŒ nametypes”}”(j"‰jO‰jí‰j¡‰j ‰jA‰j¨‰jd‰j½‰jö‰jG‰j‰uh}”(jhÊjLjšjêj¹jžjðj j¤j>jj¥jDjaj«jºjgjójÀjDjùjjRuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.