€•Œ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/power/energy-model”Œ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/power/energy-model”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/power/energy-model”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/power/energy-model”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/power/energy-model”Œ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/power/energy-model”Œ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/power/energy-model”Œ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³Œ@/var/lib/git/docbuild/linux/Documentation/power/energy-model.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒEnergy Model of devices”h]”hŒEnergy Model of devices”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 1. Overview”h]”hŒ 1. Overview”…”�”}”(hhàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÝh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒåThe Energy Model (EM) framework serves as an interface between drivers knowing the power consumed by devices at various performance levels, and the kernel subsystems willing to use that information to make energy-aware decisions.”h]”hŒåThe Energy Model (EM) framework serves as an interface between drivers knowing the power consumed by devices at various performance levels, and the kernel subsystems willing to use that information to make energy-aware decisions.”…”�”}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)�”}”(hX?The source of the information about the power consumed by devices can vary greatly from one platform to another. These power costs can be estimated using devicetree data in some cases. In others, the firmware will know better. Alternatively, userspace might be best positioned. In order to avoid having each and every client subsystem re-implement support for each and every possible source of information on its own, the EM framework intervenes as an abstraction layer which standardizes the format of power cost tables in the kernel, hence enabling to avoid redundant work.”h]”hX?The source of the information about the power consumed by devices can vary greatly from one platform to another. These power costs can be estimated using devicetree data in some cases. In others, the firmware will know better. Alternatively, userspace might be best positioned. In order to avoid having each and every client subsystem re-implement support for each and every possible source of information on its own, the EM framework intervenes as an abstraction layer which standardizes the format of power cost tables in the kernel, hence enabling to avoid redundant work.”…”�”}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubhï)�”}”(hXõThe power values might be expressed in micro-Watts or in an 'abstract scale'. Multiple subsystems might use the EM and it is up to the system integrator to check that the requirements for the power value scale types are met. An example can be found in the Energy-Aware Scheduler documentation Documentation/scheduler/sched-energy.rst. For some subsystems like thermal or powercap power values expressed in an 'abstract scale' might cause issues. These subsystems are more interested in estimation of power used in the past, thus the real micro-Watts might be needed. An example of these requirements can be found in the Intelligent Power Allocation in Documentation/driver-api/thermal/power_allocator.rst. Kernel subsystems might implement automatic detection to check whether EM registered devices have inconsistent scale (based on EM internal flag). An important thing to keep in mind is that when the power values are expressed in an 'abstract scale' deriving real energy in micro-Joules would not be possible.”h]”hXThe power values might be expressed in micro-Watts or in an ‘abstract scale’. Multiple subsystems might use the EM and it is up to the system integrator to check that the requirements for the power value scale types are met. An example can be found in the Energy-Aware Scheduler documentation Documentation/scheduler/sched-energy.rst. For some subsystems like thermal or powercap power values expressed in an ‘abstract scale’ might cause issues. These subsystems are more interested in estimation of power used in the past, thus the real micro-Watts might be needed. An example of these requirements can be found in the Intelligent Power Allocation in Documentation/driver-api/thermal/power_allocator.rst. Kernel subsystems might implement automatic detection to check whether EM registered devices have inconsistent scale (based on EM internal flag). An important thing to keep in mind is that when the power values are expressed in an ‘abstract scale’ deriving real energy in micro-Joules would not be possible.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubhï)�”}”(hŒÓThe figure below depicts an example of drivers (Arm-specific here, but the approach is applicable to any architecture) providing power costs to the EM framework, and interested clients reading the data from it::”h]”hŒÒThe figure below depicts an example of drivers (Arm-specific here, but the approach is applicable to any architecture) providing power costs to the EM framework, and interested clients reading the data from it:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K&hhÝh²hubhŒ literal_block”“”)�”}”(hX±+---------------+ +-----------------+ +---------------+ | Thermal (IPA) | | Scheduler (EAS) | | Other | +---------------+ +-----------------+ +---------------+ | | em_cpu_energy() | | | em_cpu_get() | +---------+ | +---------+ | | | v v v +---------------------+ | Energy Model | | Framework | +---------------------+ ^ ^ ^ | | | em_dev_register_perf_domain() +----------+ | +---------+ | | | +---------------+ +---------------+ +--------------+ | cpufreq-dt | | arm_scmi | | Other | +---------------+ +---------------+ +--------------+ ^ ^ ^ | | | +--------------+ +---------------+ +--------------+ | Device Tree | | Firmware | | ? | +--------------+ +---------------+ +--------------+”h]”hX±+---------------+ +-----------------+ +---------------+ | Thermal (IPA) | | Scheduler (EAS) | | Other | +---------------+ +-----------------+ +---------------+ | | em_cpu_energy() | | | em_cpu_get() | +---------+ | +---------+ | | | v v v +---------------------+ | Energy Model | | Framework | +---------------------+ ^ ^ ^ | | | em_dev_register_perf_domain() +----------+ | +---------+ | | | +---------------+ +---------------+ +--------------+ | cpufreq-dt | | arm_scmi | | Other | +---------------+ +---------------+ +--------------+ ^ ^ ^ | | | +--------------+ +---------------+ +--------------+ | Device Tree | | Firmware | | ? | +--------------+ +---------------+ +--------------+”…”�”}”hj*sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´K*hhÝh²hubhï)�”}”(hX£In case of CPU devices the EM framework manages power cost tables per 'performance domain' in the system. A performance domain is a group of CPUs whose performance is scaled together. Performance domains generally have a 1-to-1 mapping with CPUFreq policies. All CPUs in a performance domain are required to have the same micro-architecture. CPUs in different performance domains can have different micro-architectures.”h]”hX§In case of CPU devices the EM framework manages power cost tables per ‘performance domain’ in the system. A performance domain is a group of CPUs whose performance is scaled together. Performance domains generally have a 1-to-1 mapping with CPUFreq policies. All CPUs in a performance domain are required to have the same micro-architecture. CPUs in different performance domains can have different micro-architectures.”…”�”}”(hj8h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KChhÝh²hubhï)�”}”(hX×To better reflect power variation due to static power (leakage) the EM supports runtime modifications of the power values. The mechanism relies on RCU to free the modifiable EM perf_state table memory. Its user, the task scheduler, also uses RCU to access this memory. The EM framework provides API for allocating/freeing the new memory for the modifiable EM table. The old memory is freed automatically using RCU callback mechanism when there are no owners anymore for the given EM runtime table instance. This is tracked using kref mechanism. The device driver which provided the new EM at runtime, should call EM API to free it safely when it's no longer needed. The EM framework will handle the clean-up when it's possible.”h]”hXÛTo better reflect power variation due to static power (leakage) the EM supports runtime modifications of the power values. The mechanism relies on RCU to free the modifiable EM perf_state table memory. Its user, the task scheduler, also uses RCU to access this memory. The EM framework provides API for allocating/freeing the new memory for the modifiable EM table. The old memory is freed automatically using RCU callback mechanism when there are no owners anymore for the given EM runtime table instance. This is tracked using kref mechanism. The device driver which provided the new EM at runtime, should call EM API to free it safely when it’s no longer needed. The EM framework will handle the clean-up when it’s possible.”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KJhhÝh²hubhï)�”}”(hŒÅThe kernel code which wants to modify the EM values is protected from concurrent access using a mutex. Therefore, the device driver code must run in sleeping context when it tries to modify the EM.”h]”hŒÅThe kernel code which wants to modify the EM values is protected from concurrent access using a mutex. Therefore, the device driver code must run in sleeping context when it tries to modify the EM.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KUhhÝh²hubhï)�”}”(hŒôWith the runtime modifiable EM we switch from a 'single and during the entire runtime static EM' (system property) design to a 'single EM which can be changed during runtime according e.g. to the workload' (system and workload property) design.”h]”hŒüWith the runtime modifiable EM we switch from a ‘single and during the entire runtime static EM’ (system property) design to a ‘single EM which can be changed during runtime according e.g. to the workload’ (system and workload property) design.”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KYhhÝh²hubhï)�”}”(hŒèIt is possible also to modify the CPU performance values for each EM's performance state. Thus, the full power and performance profile (which is an exponential curve) can be changed according e.g. to the workload or system property.”h]”hŒêIt is possible also to modify the CPU performance values for each EM’s performance state. Thus, the full power and performance profile (which is an exponential curve) can be changed according e.g. to the workload or system property.”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K^hhÝh²hubeh}”(h]”Œoverview”ah ]”h"]”Œ 1. overview”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 2. Core APIs”h]”hŒ 2. Core APIs”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj†h²hh³hÇh´KeubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.1 Config options”h]”hŒ2.1 Config options”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj—h²hh³hÇh´Khubhï)�”}”(hŒ tuples for each performance state. The callback function provided by the driver is free to fetch data from any relevant location (DT, firmware, ...), and by any mean deemed necessary. Only for CPU devices, drivers must specify the CPUs of the performance domains using cpumask. For other devices than CPUs the last argument must be set to NULL. The last argument 'microwatts' is important to set with correct value. Kernel subsystems which use EM might rely on this flag to check if all EM devices use the same scale. If there are different scales, these subsystems might decide to return warning/error, stop working or panic. See Section 3. for an example of driver implementing this callback, or Section 2.4 for further documentation on this API”h]”hX5Drivers must provide a callback function returning tuples for each performance state. The callback function provided by the driver is free to fetch data from any relevant location (DT, firmware, ...), and by any mean deemed necessary. Only for CPU devices, drivers must specify the CPUs of the performance domains using cpumask. For other devices than CPUs the last argument must be set to NULL. The last argument ‘microwatts’ is important to set with correct value. Kernel subsystems which use EM might rely on this flag to check if all EM devices use the same scale. If there are different scales, these subsystems might decide to return warning/error, stop working or panic. See Section 3. for an example of driver implementing this callback, or Section 2.4 for further documentation on this API”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K€hjÏh²hubeh}”(h]”Œregistration-of-advanced-em”ah ]”h"]”Œregistration of 'advanced' em”ah$]”h&]”uh1hÈhj¾h²hh³hÇh´KqubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒRegistration of EM using DT”h]”hŒRegistration of EM using DT”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´KŽubhï)�”}”(hX�The EM can also be registered using OPP framework and information in DT "operating-points-v2". Each OPP entry in DT can be extended with a property "opp-microwatt" containing micro-Watts power value. This OPP DT property allows a platform to register EM power values which are reflecting total power (static + dynamic). These power values might be coming directly from experiments and measurements.”h]”hX—The EM can also be registered using OPP framework and information in DT “operating-points-v2â€�. Each OPP entry in DT can be extended with a property “opp-microwattâ€� containing micro-Watts power value. This OPP DT property allows a platform to register EM power values which are reflecting total power (static + dynamic). These power values might be coming directly from experiments and measurements.”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K�hj h²hubeh}”(h]”Œregistration-of-em-using-dt”ah ]”h"]”Œregistration of em using dt”ah$]”h&]”uh1hÈhj¾h²hh³hÇh´KŽubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒRegistration of 'artificial' EM”h]”hŒ#Registration of ‘artificial’ EM”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjGh²hh³hÇh´K˜ubhï)�”}”(hXrThere is an option to provide a custom callback for drivers missing detailed knowledge about power value for each performance state. The callback .get_cost() is optional and provides the 'cost' values used by the EAS. This is useful for platforms that only provide information on relative efficiency between CPU types, where one could use the information to create an abstract power model. But even an abstract power model can sometimes be hard to fit in, given the input power value size restrictions. The .get_cost() allows to provide the 'cost' values which reflect the efficiency of the CPUs. This would allow to provide EAS information which has different relation than what would be forced by the EM internal formulas calculating 'cost' values. To register an EM for such platform, the driver must set the flag 'microwatts' to 0, provide .get_power() callback and provide .get_cost() callback. The EM framework would handle such platform properly during registration. A flag EM_PERF_DOMAIN_ARTIFICIAL is set for such platform. Special care should be taken by other frameworks which are using EM to test and treat this flag properly.”h]”hX‚There is an option to provide a custom callback for drivers missing detailed knowledge about power value for each performance state. The callback .get_cost() is optional and provides the ‘cost’ values used by the EAS. This is useful for platforms that only provide information on relative efficiency between CPU types, where one could use the information to create an abstract power model. But even an abstract power model can sometimes be hard to fit in, given the input power value size restrictions. The .get_cost() allows to provide the ‘cost’ values which reflect the efficiency of the CPUs. This would allow to provide EAS information which has different relation than what would be forced by the EM internal formulas calculating ‘cost’ values. To register an EM for such platform, the driver must set the flag ‘microwatts’ to 0, provide .get_power() callback and provide .get_cost() callback. The EM framework would handle such platform properly during registration. A flag EM_PERF_DOMAIN_ARTIFICIAL is set for such platform. Special care should be taken by other frameworks which are using EM to test and treat this flag properly.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KšhjGh²hubeh}”(h]”Œregistration-of-artificial-em”ah ]”h"]”Œregistration of 'artificial' em”ah$]”h&]”uh1hÈhj¾h²hh³hÇh´K˜ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒRegistration of 'simple' EM”h]”hŒRegistration of ‘simple’ EM”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjnh²hh³hÇh´K¬ubhï)�”}”(hŒŸThe 'simple' EM is registered using the framework helper function cpufreq_register_em_with_opp(). It implements a power model which is tied to a math formula::”h]”hŒ¢The ‘simple’ EM is registered using the framework helper function cpufreq_register_em_with_opp(). It implements a power model which is tied to a math formula:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K®hjnh²hubj))�”}”(hŒPower = C * V^2 * f”h]”hŒPower = C * V^2 * f”…”�”}”hj�sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´K²hjnh²hubhï)�”}”(hŒ•The EM which is registered using this method might not reflect correctly the physics of a real device, e.g. when static power (leakage) is important.”h]”hŒ•The EM which is registered using this method might not reflect correctly the physics of a real device, e.g. when static power (leakage) is important.”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K´hjnh²hubeh}”(h]”Œregistration-of-simple-em”ah ]”h"]”Œregistration of 'simple' em”ah$]”h&]”uh1hÈhj¾h²hh³hÇh´K¬ubeh}”(h]”Œ#registration-of-performance-domains”ah ]”h"]”Œ'2.2 registration of performance domains”ah$]”h&]”uh1hÈhj†h²hh³hÇh´KnubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ!2.3 Accessing performance domains”h]”hŒ!2.3 Accessing performance domains”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¹h²hh³hÇh´K¹ubhï)�”}”(hX:There are two API functions which provide the access to the energy model: em_cpu_get() which takes CPU id as an argument and em_pd_get() with device pointer as an argument. It depends on the subsystem which interface it is going to use, but in case of CPU devices both functions return the same performance domain.”h]”hX:There are two API functions which provide the access to the energy model: em_cpu_get() which takes CPU id as an argument and em_pd_get() with device pointer as an argument. It depends on the subsystem which interface it is going to use, but in case of CPU devices both functions return the same performance domain.”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K»hj¹h²hubhï)�”}”(hŒÑSubsystems interested in the energy model of a CPU can retrieve it using the em_cpu_get() API. The energy model tables are allocated once upon creation of the performance domains, and kept in memory untouched.”h]”hŒÑSubsystems interested in the energy model of a CPU can retrieve it using the em_cpu_get() API. The energy model tables are allocated once upon creation of the performance domains, and kept in memory untouched.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÁhj¹h²hubhï)�”}”(hX The energy consumed by a performance domain can be estimated using the em_cpu_energy() API. The estimation is performed assuming that the schedutil CPUfreq governor is in use in case of CPU device. Currently this calculation is not provided for other type of devices.”h]”hX The energy consumed by a performance domain can be estimated using the em_cpu_energy() API. The estimation is performed assuming that the schedutil CPUfreq governor is in use in case of CPU device. Currently this calculation is not provided for other type of devices.”…”�”}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÅhj¹h²hubhï)�”}”(hŒ^More details about the above APIs can be found in ```` or in Section 2.5”h]”(hŒ2More details about the above APIs can be found in ”…”�”}”(hjôh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ````”h]”hŒ”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjôubhŒ or in Section 2.5”…”�”}”(hjôh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÊhj¹h²hubeh}”(h]”Œaccessing-performance-domains”ah ]”h"]”Œ!2.3 accessing performance domains”ah$]”h&]”uh1hÈhj†h²hh³hÇh´K¹ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2.4 Runtime modifications”h]”hŒ2.4 Runtime modifications”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´KÏubhï)�”}”(hŒ Drivers willing to update the EM at runtime should use the following dedicated function to allocate a new instance of the modified EM. The API is listed below::”h]”hŒŸDrivers willing to update the EM at runtime should use the following dedicated function to allocate a new instance of the modified EM. The API is listed below:”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KÑhjh²hubj))�”}”(hŒFstruct em_perf_table __rcu *em_table_alloc(struct em_perf_domain *pd);”h]”hŒFstruct em_perf_table __rcu *em_table_alloc(struct em_perf_domain *pd);”…”�”}”hj=sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´KÕhjh²hubhï)�”}”(hXèThis allows to allocate a structure which contains the new EM table with also RCU and kref needed by the EM framework. The 'struct em_perf_table' contains array 'struct em_perf_state state[]' which is a list of performance states in ascending order. That list must be populated by the device driver which wants to update the EM. The list of frequencies can be taken from existing EM (created during boot). The content in the 'struct em_perf_state' must be populated by the driver as well.”h]”hXôThis allows to allocate a structure which contains the new EM table with also RCU and kref needed by the EM framework. The ‘struct em_perf_table’ contains array ‘struct em_perf_state state[]’ which is a list of performance states in ascending order. That list must be populated by the device driver which wants to update the EM. The list of frequencies can be taken from existing EM (created during boot). The content in the ‘struct em_perf_state’ must be populated by the driver as well.”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K×hjh²hubhï)�”}”(hŒCThis is the API which does the EM update, using RCU pointers swap::”h]”hŒBThis is the API which does the EM update, using RCU pointers swap:”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kßhjh²hubj))�”}”(hŒoint em_dev_update_perf_domain(struct device *dev, struct em_perf_table __rcu *new_table);”h]”hŒoint em_dev_update_perf_domain(struct device *dev, struct em_perf_table __rcu *new_table);”…”�”}”hjgsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Káhjh²hubhï)�”}”(hXÚDrivers must provide a pointer to the allocated and initialized new EM 'struct em_perf_table'. That new EM will be safely used inside the EM framework and will be visible to other sub-systems in the kernel (thermal, powercap). The main design goal for this API is to be fast and avoid extra calculations or memory allocations at runtime. When pre-computed EMs are available in the device driver, then it should be possible to simply reuse them with low performance overhead.”h]”hXÞDrivers must provide a pointer to the allocated and initialized new EM ‘struct em_perf_table’. That new EM will be safely used inside the EM framework and will be visible to other sub-systems in the kernel (thermal, powercap). The main design goal for this API is to be fast and avoid extra calculations or memory allocations at runtime. When pre-computed EMs are available in the device driver, then it should be possible to simply reuse them with low performance overhead.”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kähjh²hubhï)�”}”(hŒ}In order to free the EM, provided earlier by the driver (e.g. when the module is unloaded), there is a need to call the API::”h]”hŒ|In order to free the EM, provided earlier by the driver (e.g. when the module is unloaded), there is a need to call the API:”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kìhjh²hubj))�”}”(hŒ6void em_table_free(struct em_perf_table __rcu *table);”h]”hŒ6void em_table_free(struct em_perf_table __rcu *table);”…”�”}”hj‘sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Kïhjh²hubhï)�”}”(hŒqIt will allow the EM framework to safely remove the memory, when there is no other sub-system using it, e.g. EAS.”h]”hŒqIt will allow the EM framework to safely remove the memory, when there is no other sub-system using it, e.g. EAS.”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kñhjh²hubhï)�”}”(hŒªTo use the power values in other sub-systems (like thermal, powercap) there is a need to call API which protects the reader and provide consistency of the EM table data::”h]”hŒ©To use the power values in other sub-systems (like thermal, powercap) there is a need to call API which protects the reader and provide consistency of the EM table data:”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kôhjh²hubj))�”}”(hŒGstruct em_perf_state *em_perf_state_from_pd(struct em_perf_domain *pd);”h]”hŒGstruct em_perf_state *em_perf_state_from_pd(struct em_perf_domain *pd);”…”�”}”hj»sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Køhjh²hubhï)�”}”(hXïIt returns the 'struct em_perf_state' pointer which is an array of performance states in ascending order. This function must be called in the RCU read lock section (after the rcu_read_lock()). When the EM table is not needed anymore there is a need to call rcu_read_unlock(). In this way the EM safely uses the RCU read section and protects the users. It also allows the EM framework to manage the memory and free it. More details how to use it can be found in Section 3.2 in the example driver.”h]”hXóIt returns the ‘struct em_perf_state’ pointer which is an array of performance states in ascending order. This function must be called in the RCU read lock section (after the rcu_read_lock()). When the EM table is not needed anymore there is a need to call rcu_read_unlock(). In this way the EM safely uses the RCU read section and protects the users. It also allows the EM framework to manage the memory and free it. More details how to use it can be found in Section 3.2 in the example driver.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kúhjh²hubhï)�”}”(hŒSThere is dedicated API for device drivers to calculate em_perf_state::cost values::”h]”hŒRThere is dedicated API for device drivers to calculate em_perf_state::cost values:”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhjh²hubj))�”}”(hŒrint em_dev_compute_costs(struct device *dev, struct em_perf_state *table, int nr_states);”h]”hŒrint em_dev_compute_costs(struct device *dev, struct em_perf_state *table, int nr_states);”…”�”}”hjåsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Mhjh²hubhï)�”}”(hXäThese 'cost' values from EM are used in EAS. The new EM table should be passed together with the number of entries and device pointer. When the computation of the cost values is done properly the return value from the function is 0. The function takes care for right setting of inefficiency for each performance state as well. It updates em_perf_state::flags accordingly. Then such prepared new EM can be passed to the em_dev_update_perf_domain() function, which will allow to use it.”h]”hXèThese ‘cost’ values from EM are used in EAS. The new EM table should be passed together with the number of entries and device pointer. When the computation of the cost values is done properly the return value from the function is 0. The function takes care for right setting of inefficiency for each performance state as well. It updates em_perf_state::flags accordingly. Then such prepared new EM can be passed to the em_dev_update_perf_domain() function, which will allow to use it.”…”�”}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M hjh²hubhï)�”}”(hŒ¿More details about the above APIs can be found in ```` or in Section 3.2 with an example code showing simple implementation of the updating mechanism in a device driver.”h]”(hŒ2More details about the above APIs can be found in ”…”�”}”(hjh²hh³Nh´Nubjý)�”}”(hŒ````”h]”hŒ”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjubhŒs or in Section 3.2 with an example code showing simple implementation of the updating mechanism in a device driver.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Mhjh²hubeh}”(h]”Œruntime-modifications”ah ]”h"]”Œ2.4 runtime modifications”ah$]”h&]”uh1hÈhj†h²hh³hÇh´KÏubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ#2.5 Description details of this API”h]”hŒ#2.5 Description details of this API”…”�”}”(hj,h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj)h²hh³hÇh´MubhŒindex”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œem_perf_state (C struct)”Œc.em_perf_state”hNt”auh1j:hj)h²hh³Nh´NubhŒdesc”“”)�”}”(hhh]”(hŒdesc_signature”“”)�”}”(hŒ em_perf_state”h]”hŒdesc_signature_line”“”)�”}”(hŒstruct em_perf_state”h]”(hŒdesc_sig_keyword”“”)�”}”(hŒstruct”h]”hŒstruct”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1j\hjXh²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KubhŒdesc_sig_space”“”)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1jnhjXh²hh³jmh´KubhŒ desc_name”“”)�”}”(hŒ em_perf_state”h]”hŒ desc_sig_name”“”)�”}”(hjTh]”hŒ em_perf_state”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j…hj�ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1jhjXh²hh³jmh´Kubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jVŒsphinx_line_type”Œ declarator”hjRh²hh³jmh´Kubah}”(h]”jIah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1jPh³jmh´KhjMh²hubhŒ desc_content”“”)�”}”(hhh]”hï)�”}”(hŒ)Performance state of a performance domain”h]”hŒ)Performance state of a performance domain”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj³h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjMh²hh³jmh´Kubeh}”(h]”h ]”(Œc”Œstruct”eh"]”h$]”h&]”Œdomain”jÎŒobjtype”jÏŒdesctype”jÏŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1jKh²hhj)h³Nh´NubhŒ container”“”)�”}”(hX **Definition**:: struct em_perf_state { unsigned long performance; unsigned long frequency; unsigned long power; unsigned long cost; unsigned long flags; }; **Members** ``performance`` CPU performance (capacity) at a given frequency ``frequency`` The frequency in KHz, for consistency with CPUFreq ``power`` The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic. ``cost`` The cost coefficient associated with this level, used during energy calculation. Equal to: 10 * power * max_frequency / frequency ``flags`` see "em_perf_state flags" description below.”h]”(hï)�”}”(hŒ**Definition**::”h]”(hŒstrong”“”)�”}”(hŒ**Definition**”h]”hŒ Definition”…”�”}”(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³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjÛubj))�”}”(hŒŸstruct em_perf_state { unsigned long performance; unsigned long frequency; unsigned long power; unsigned long cost; unsigned long flags; };”h]”hŒŸstruct em_perf_state { unsigned long performance; unsigned long frequency; unsigned long power; unsigned long cost; unsigned long flags; };”…”�”}”hjþsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjÛubhï)�”}”(hŒ **Members**”h]”jä)�”}”(hjh]”hŒMembers”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjÛubhŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒ@``performance`` CPU performance (capacity) at a given frequency ”h]”(hŒterm”“”)�”}”(hŒ``performance``”h]”jý)�”}”(hj4h]”hŒ performance”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj,ubhŒ definition”“”)�”}”(hhh]”hï)�”}”(hŒ/CPU performance (capacity) at a given frequency”h]”hŒ/CPU performance (capacity) at a given frequency”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jIh´KhjLubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj,ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jIh´Khj'ubj+)�”}”(hŒA``frequency`` The frequency in KHz, for consistency with CPUFreq ”h]”(j1)�”}”(hŒ ``frequency``”h]”jý)�”}”(hjoh]”hŒ frequency”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjmubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjiubjK)�”}”(hhh]”hï)�”}”(hŒ2The frequency in KHz, for consistency with CPUFreq”h]”hŒ2The frequency in KHz, for consistency with CPUFreq”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j„h´Khj…ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjiubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j„h´Khj'ubj+)�”}”(hŒ~``power`` The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic. ”h]”(j1)�”}”(hŒ ``power``”h]”jý)�”}”(hj¨h]”hŒpower”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj¢ubjK)�”}”(hhh]”hï)�”}”(hŒsThe power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.”h]”hŒsThe power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj¾ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj¢ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j½h´Khj'ubj+)�”}”(hŒ‹``cost`` The cost coefficient associated with this level, used during energy calculation. Equal to: 10 * power * max_frequency / frequency ”h]”(j1)�”}”(hŒ``cost``”h]”jý)�”}”(hjâh]”hŒcost”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjàubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjÜubjK)�”}”(hhh]”hï)�”}”(hŒ�The cost coefficient associated with this level, used during energy calculation. Equal to: 10 * power * max_frequency / frequency”h]”hŒ�The cost coefficient associated with this level, used during energy calculation. Equal to: 10 * power * max_frequency / frequency”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khjøubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÜubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j÷h´Khj'ubj+)�”}”(hŒ6``flags`` see "em_perf_state flags" description below.”h]”(j1)�”}”(hŒ ``flags``”h]”jý)�”}”(hjh]”hŒflags”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KhjubjK)�”}”(hhh]”hï)�”}”(hŒ,see "em_perf_state flags" description below.”h]”hŒ0see “em_perf_state flagsâ€� description below.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j1h´Khj'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjÛubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒem_perf_table (C struct)”Œc.em_perf_table”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ em_perf_table”h]”jW)�”}”(hŒstruct em_perf_table”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjrh²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjrh²hh³jƒh´Kubj€)�”}”(hŒ em_perf_table”h]”j†)�”}”(hjph]”hŒ em_perf_table”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj’ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjrh²hh³jƒh´Kubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjnh²hh³jƒh´Kubah}”(h]”jiah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jƒh´Khjkh²hubj²)�”}”(hhh]”hï)�”}”(hŒPerformance states table”h]”hŒPerformance states table”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K+hjµh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjkh²hh³jƒh´Kubeh}”(h]”h ]”(jÎŒstruct”eh"]”h$]”h&]”jÓjÎjÔjÐjÕjÐjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX4**Definition**:: struct em_perf_table { struct rcu_head rcu; struct kref kref; struct em_perf_state state[]; }; **Members** ``rcu`` RCU used for safe access and destruction ``kref`` Reference counter to track the users ``state`` List of performance states, in ascending order”h]”(hï)�”}”(hŒ**Definition**::”h]”(jä)�”}”(hŒ**Definition**”h]”hŒ Definition”…”�”}”(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³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K/hjÔubj))�”}”(hŒjstruct em_perf_table { struct rcu_head rcu; struct kref kref; struct em_perf_state state[]; };”h]”hŒjstruct em_perf_table { struct rcu_head rcu; struct kref kref; struct em_perf_state state[]; };”…”�”}”hjõsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K1hjÔubhï)�”}”(hŒ **Members**”h]”jä)�”}”(hjh]”hŒMembers”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K7hjÔubj&)�”}”(hhh]”(j+)�”}”(hŒ1``rcu`` RCU used for safe access and destruction ”h]”(j1)�”}”(hŒ``rcu``”h]”jý)�”}”(hj%h]”hŒrcu”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj#ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K-hjubjK)�”}”(hhh]”hï)�”}”(hŒ(RCU used for safe access and destruction”h]”hŒ(RCU used for safe access and destruction”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j:h´K-hj;ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j:h´K-hjubj+)�”}”(hŒ.``kref`` Reference counter to track the users ”h]”(j1)�”}”(hŒ``kref``”h]”jý)�”}”(hj^h]”hŒkref”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj\ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K.hjXubjK)�”}”(hhh]”hï)�”}”(hŒ$Reference counter to track the users”h]”hŒ$Reference counter to track the users”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jsh´K.hjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjXubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jsh´K.hjubj+)�”}”(hŒ8``state`` List of performance states, in ascending order”h]”(j1)�”}”(hŒ ``state``”h]”jý)�”}”(hj—h]”hŒstate”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj•ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K.hj‘ubjK)�”}”(hhh]”hï)�”}”(hŒ.List of performance states, in ascending order”h]”hŒ.List of performance states, in ascending order”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K/hj­ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj‘ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j¬h´K.hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjÔubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒem_perf_domain (C struct)”Œc.em_perf_domain”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒem_perf_domain”h]”jW)�”}”(hŒstruct em_perf_domain”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjíh²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K5ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjíh²hh³jþh´K5ubj€)�”}”(hŒem_perf_domain”h]”j†)�”}”(hjëh]”hŒem_perf_domain”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjíh²hh³jþh´K5ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjéh²hh³jþh´K5ubah}”(h]”jäah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jþh´K5hjæh²hubj²)�”}”(hhh]”hï)�”}”(hŒPerformance domain”h]”hŒPerformance domain”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K7hj0h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjæh²hh³jþh´K5ubeh}”(h]”h ]”(jÎŒstruct”eh"]”h$]”h&]”jÓjÎjÔjKjÕjKjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hXu**Definition**:: struct em_perf_domain { struct em_perf_table *em_table; struct list_head node; int id; int nr_perf_states; int min_perf_state; int max_perf_state; unsigned long flags; unsigned long cpus[]; }; **Members** ``em_table`` Pointer to the runtime modifiable em_perf_table ``node`` node in em_pd_list (in energy_model.c) ``id`` A unique ID number for each performance domain ``nr_perf_states`` Number of performance states ``min_perf_state`` Minimum allowed Performance State index ``max_perf_state`` Maximum allowed Performance State index ``flags`` See "em_perf_domain flags" ``cpus`` Cpumask covering the CPUs of the domain. It's here for performance reasons to avoid potential cache misses during energy calculations in the scheduler and simplifies allocating/freeing that memory region.”h]”(hï)�”}”(hŒ**Definition**::”h]”(jä)�”}”(hŒ**Definition**”h]”hŒ Definition”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjSubhŒ:”…”�”}”(hjSh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K;hjOubj))�”}”(hŒàstruct em_perf_domain { struct em_perf_table *em_table; struct list_head node; int id; int nr_perf_states; int min_perf_state; int max_perf_state; unsigned long flags; unsigned long cpus[]; };”h]”hŒàstruct em_perf_domain { struct em_perf_table *em_table; struct list_head node; int id; int nr_perf_states; int min_perf_state; int max_perf_state; unsigned long flags; unsigned long cpus[]; };”…”�”}”hjpsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K=hjOubhï)�”}”(hŒ **Members**”h]”jä)�”}”(hj�h]”hŒMembers”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KHhjOubj&)�”}”(hhh]”(j+)�”}”(hŒ=``em_table`` Pointer to the runtime modifiable em_perf_table ”h]”(j1)�”}”(hŒ ``em_table``”h]”jý)�”}”(hj h]”hŒem_table”…”�”}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjžubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K9hjšubjK)�”}”(hhh]”hï)�”}”(hŒ/Pointer to the runtime modifiable em_perf_table”h]”hŒ/Pointer to the runtime modifiable em_perf_table”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jµh´K9hj¶ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjšubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jµh´K9hj—ubj+)�”}”(hŒ0``node`` node in em_pd_list (in energy_model.c) ”h]”(j1)�”}”(hŒ``node``”h]”jý)�”}”(hjÙh]”hŒnode”…”�”}”(hjÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj×ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K:hjÓubjK)�”}”(hhh]”hï)�”}”(hŒ&node in em_pd_list (in energy_model.c)”h]”hŒ&node in em_pd_list (in energy_model.c)”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jîh´K:hjïubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÓubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jîh´K:hj—ubj+)�”}”(hŒ6``id`` A unique ID number for each performance domain ”h]”(j1)�”}”(hŒ``id``”h]”jý)�”}”(hj h]”hŒid”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K;hj ubjK)�”}”(hhh]”hï)�”}”(hŒ.A unique ID number for each performance domain”h]”hŒ.A unique ID number for each performance domain”…”�”}”(hj+ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j' h´K;hj( ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j' h´K;hj—ubj+)�”}”(hŒ0``nr_perf_states`` Number of performance states ”h]”(j1)�”}”(hŒ``nr_perf_states``”h]”jý)�”}”(hjK h]”hŒnr_perf_states”…”�”}”(hjM h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjI ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Khj· ubjK)�”}”(hhh]”hï)�”}”(hŒ'Maximum allowed Performance State index”h]”hŒ'Maximum allowed Performance State index”…”�”}”(hjÖ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jÒ h´K>hjÓ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj· ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jÒ h´K>hj—ubj+)�”}”(hŒ%``flags`` See "em_perf_domain flags" ”h]”(j1)�”}”(hŒ ``flags``”h]”jý)�”}”(hjö h]”hŒflags”…”�”}”(hjø h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjô ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K?hjð ubjK)�”}”(hhh]”hï)�”}”(hŒSee "em_perf_domain flags"”h]”hŒSee “em_perf_domain flagsâ€�”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j h´K?hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjð ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j h´K?hj—ubj+)�”}”(hŒÕ``cpus`` Cpumask covering the CPUs of the domain. It's here for performance reasons to avoid potential cache misses during energy calculations in the scheduler and simplifies allocating/freeing that memory region.”h]”(j1)�”}”(hŒ``cpus``”h]”jý)�”}”(hj/ h]”hŒcpus”…”�”}”(hj1 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj- ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KBhj) ubjK)�”}”(hhh]”hï)�”}”(hŒÌCpumask covering the CPUs of the domain. It's here for performance reasons to avoid potential cache misses during energy calculations in the scheduler and simplifies allocating/freeing that memory region.”h]”hŒÎCpumask covering the CPUs of the domain. It’s here for performance reasons to avoid potential cache misses during energy calculations in the scheduler and simplifies allocating/freeing that memory region.”…”�”}”(hjH h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´K@hjE ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj) ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jD h´KBhj—ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjOubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjr h]”hŒ Description”…”�”}”(hjt h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjp ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KFhj)h²hubhï)�”}”(hX4In case of CPU device, a "performance domain" represents a group of CPUs whose performance is scaled together. All CPUs of a performance domain must have the same micro-architecture. Performance domains often have a 1-to-1 mapping with CPUFreq policies. In case of other devices the **cpus** field is unused.”h]”(hXIn case of CPU device, a “performance domainâ€� represents a group of CPUs whose performance is scaled together. All CPUs of a performance domain must have the same micro-architecture. Performance domains often have a 1-to-1 mapping with CPUFreq policies. In case of other devices the ”…”�”}”(hjˆ h²hh³Nh´Nubjä)�”}”(hŒ**cpus**”h]”hŒcpus”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjˆ ubhŒ field is unused.”…”�”}”(hjˆ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KChj)h²hubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ&em_pd_get_efficient_state (C function)”Œc.em_pd_get_efficient_state”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒnint em_pd_get_efficient_state (struct em_perf_state *table, struct em_perf_domain *pd, unsigned long max_util)”h]”jW)�”}”(hŒmint em_pd_get_efficient_state(struct em_perf_state *table, struct em_perf_domain *pd, unsigned long max_util)”h]”(hŒdesc_sig_keyword_type”“”)�”}”(hŒint”h]”hŒint”…”�”}”(hjÄ h²hh³Nh´Nubah}”(h]”h ]”Œkt”ah"]”h$]”h&]”uh1j hj¾ h²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÁubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÔ h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj¾ h²hh³jÓ h´KÁubj€)�”}”(hŒem_pd_get_efficient_state”h]”j†)�”}”(hŒem_pd_get_efficient_state”h]”hŒem_pd_get_efficient_state”…”�”}”(hjæ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjâ ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj¾ h²hh³jÓ h´KÁubhŒdesc_parameterlist”“”)�”}”(hŒP(struct em_perf_state *table, struct em_perf_domain *pd, unsigned long max_util)”h]”(hŒdesc_parameter”“”)�”}”(hŒstruct em_perf_state *table”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj ubh)�”}”(hhh]”j†)�”}”(hŒ em_perf_state”h]”hŒ em_perf_state”…”�”}”(hj$ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj! ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”Œ identifier”Œ reftarget”j& Œmodname”NŒ classname”NŒ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)�”}”Œdata”]”j? Œ ASTIdentifier”“”)�”}”j: jè sbŒc.em_pd_get_efficient_state”†”asbuh1hhj ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjL h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj ubhŒdesc_sig_punctuation”“”)�”}”(hŒ*”h]”hŒ*”…”�”}”(hj\ h²hh³Nh´Nubah}”(h]”h ]”Œp”ah"]”h$]”h&]”uh1jZ hj ubj†)�”}”(hŒtable”h]”hŒtable”…”�”}”(hjk h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjü ubj )�”}”(hŒstruct em_perf_domain *pd”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj„ h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj€ ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj‘ h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj€ ubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hj¢ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjŸ ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j¤ Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jH Œc.em_pd_get_efficient_state”†”asbuh1hhj€ ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÀ h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj€ ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjÎ h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj€ ubj†)�”}”(hŒpd”h]”hŒpd”…”�”}”(hjÛ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj€ ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjü ubj )�”}”(hŒunsigned long max_util”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hjô h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjð ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjð ubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjð ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjð ubj†)�”}”(hŒmax_util”h]”hŒmax_util”…”�”}”(hj, h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjð ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjü ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj¾ h²hh³jÓ h´KÁubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjº h²hh³jÓ h´KÁubah}”(h]”jµ ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jÓ h´KÁhj· h²hubj²)�”}”(hhh]”hï)�”}”(hŒ.Get an efficient performance state from the EM”h]”hŒ.Get an efficient performance state from the EM”…”�”}”(hjV h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÁhjS h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj· h²hh³jÓ h´KÁubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjn jÕjn jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hXÉ**Parameters** ``struct em_perf_state *table`` List of performance states, in ascending order ``struct em_perf_domain *pd`` performance domain for which this must be done ``unsigned long max_util`` Max utilization to map with the EM **Description** It is called from the scheduler code quite frequently and as a consequence doesn't implement any check. **Return** An efficient performance state id, high enough to meet **max_util** requirement.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjx h]”hŒ Parameters”…”�”}”(hjz h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjv ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÅhjr ubj&)�”}”(hhh]”(j+)�”}”(hŒO``struct em_perf_state *table`` List of performance states, in ascending order ”h]”(j1)�”}”(hŒ``struct em_perf_state *table``”h]”jý)�”}”(hj— h]”hŒstruct em_perf_state *table”…”�”}”(hj™ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj• ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÂhj‘ ubjK)�”}”(hhh]”hï)�”}”(hŒ.List of performance states, in ascending order”h]”hŒ.List of performance states, in ascending order”…”�”}”(hj° h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j¬ h´KÂhj­ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj‘ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j¬ h´KÂhjŽ ubj+)�”}”(hŒM``struct em_perf_domain *pd`` performance domain for which this must be done ”h]”(j1)�”}”(hŒ``struct em_perf_domain *pd``”h]”jý)�”}”(hjÐ h]”hŒstruct em_perf_domain *pd”…”�”}”(hjÒ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjÎ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÃhjÊ ubjK)�”}”(hhh]”hï)�”}”(hŒ.performance domain for which this must be done”h]”hŒ.performance domain for which this must be done”…”�”}”(hjé h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jå h´KÃhjæ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÊ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jå h´KÃhjŽ ubj+)�”}”(hŒ>``unsigned long max_util`` Max utilization to map with the EM ”h]”(j1)�”}”(hŒ``unsigned long max_util``”h]”jý)�”}”(hj h]”hŒunsigned long max_util”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÄhj ubjK)�”}”(hhh]”hï)�”}”(hŒ"Max utilization to map with the EM”h]”hŒ"Max utilization to map with the EM”…”�”}”(hj" h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j h´KÄhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj ubeh}”(•h]”h ]”h"]”h$]”h&]”uh1j*h³j h´KÄhjŽ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjr ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjD h]”hŒ Description”…”�”}”(hjF h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjB ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÆhjr ubhï)�”}”(hŒgIt is called from the scheduler code quite frequently and as a consequence doesn't implement any check.”h]”hŒiIt is called from the scheduler code quite frequently and as a consequence doesn’t implement any check.”…”�”}”(hjZ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÅhjr ubhï)�”}”(hŒ **Return**”h]”jä)�”}”(hjk h]”hŒReturn”…”�”}”(hjm h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhji ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÈhjr ubhï)�”}”(hŒPAn efficient performance state id, high enough to meet **max_util** requirement.”h]”(hŒ7An efficient performance state id, high enough to meet ”…”�”}”(hj� h²hh³Nh´Nubjä)�”}”(hŒ **max_util**”h]”hŒmax_util”…”�”}”(hj‰ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj� ubhŒ requirement.”…”�”}”(hj� h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KÉhjr ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒem_cpu_energy (C function)”Œc.em_cpu_energy”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ†unsigned long em_cpu_energy (struct em_perf_domain *pd, unsigned long max_util, unsigned long sum_util, unsigned long allowed_cpu_cap)”h]”jW)�”}”(hŒ…unsigned long em_cpu_energy(struct em_perf_domain *pd, unsigned long max_util, unsigned long sum_util, unsigned long allowed_cpu_cap)”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj¾ h²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Käubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÑ h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj¾ h²hh³jÐ h´Käubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hjß h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj¾ h²hh³jÐ h´Käubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjí h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj¾ h²hh³jÐ h´Käubj€)�”}”(hŒ em_cpu_energy”h]”j†)�”}”(hŒ em_cpu_energy”h]”hŒ em_cpu_energy”…”�”}”(hjÿ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjû ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj¾ h²hh³jÐ h´Käubjû )�”}”(hŒj(struct em_perf_domain *pd, unsigned long max_util, unsigned long sum_util, unsigned long allowed_cpu_cap)”h]”(j )�”}”(hŒstruct em_perf_domain *pd”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj6ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j;Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: jsbŒc.em_cpu_energy”†”asbuh1hhjubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjubj†)�”}”(hŒpd”h]”hŒpd”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjubj )�”}”(hŒunsigned long max_util”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj‰ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj‰ubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj‰ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj·h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj‰ubj†)�”}”(hŒmax_util”h]”hŒmax_util”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj‰ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjubj )�”}”(hŒunsigned long sum_util”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjÚubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÚubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjÚubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÚubj†)�”}”(hŒsum_util”h]”hŒsum_util”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÚubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjubj )�”}”(hŒunsigned long allowed_cpu_cap”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj+ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj+ubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj+ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj+ubj†)�”}”(hŒallowed_cpu_cap”h]”hŒallowed_cpu_cap”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj+ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj¾ h²hh³jÐ h´Käubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjº h²hh³jÐ h´Käubah}”(h]”jµ ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jÐ h´Kähj· h²hubj²)�”}”(hhh]”hï)�”}”(hŒAEstimates the energy consumed by the CPUs of a performance domain”h]”hŒAEstimates the energy consumed by the CPUs of a performance domain”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KähjŽh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj· h²hh³jÐ h´Käubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔj©jÕj©jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX**Parameters** ``struct em_perf_domain *pd`` performance domain for which energy has to be estimated ``unsigned long max_util`` highest utilization among CPUs of the domain ``unsigned long sum_util`` sum of the utilization of all CPUs in the domain ``unsigned long allowed_cpu_cap`` maximum allowed CPU capacity for the **pd**, which might reflect reduced frequency (due to thermal) **Description** This function must be used only for CPU devices. There is no validation, i.e. if the EM is a CPU type and has cpumask allocated. It is called from the scheduler code quite frequently and that is why there is not checks. **Return** the sum of the energy consumed by the CPUs of the domain assuming a capacity state satisfying the max utilization of the domain.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj³h]”hŒ Parameters”…”�”}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj±ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kèhj­ubj&)�”}”(hhh]”(j+)�”}”(hŒV``struct em_perf_domain *pd`` performance domain for which energy has to be estimated ”h]”(j1)�”}”(hŒ``struct em_perf_domain *pd``”h]”jý)�”}”(hjÒh]”hŒstruct em_perf_domain *pd”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KæhjÌubjK)�”}”(hhh]”hï)�”}”(hŒ7performance domain for which energy has to be estimated”h]”hŒ7performance domain for which energy has to be estimated”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jçh´Kæhjèubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÌubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jçh´KæhjÉubj+)�”}”(hŒH``unsigned long max_util`` highest utilization among CPUs of the domain ”h]”(j1)�”}”(hŒ``unsigned long max_util``”h]”jý)�”}”(hj h]”hŒunsigned long max_util”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KçhjubjK)�”}”(hhh]”hï)�”}”(hŒ,highest utilization among CPUs of the domain”h]”hŒ,highest utilization among CPUs of the domain”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j h´Kçhj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j h´KçhjÉubj+)�”}”(hŒL``unsigned long sum_util`` sum of the utilization of all CPUs in the domain ”h]”(j1)�”}”(hŒ``unsigned long sum_util``”h]”jý)�”}”(hjDh]”hŒunsigned long sum_util”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjBubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kèhj>ubjK)�”}”(hhh]”hï)�”}”(hŒ0sum of the utilization of all CPUs in the domain”h]”hŒ0sum of the utilization of all CPUs in the domain”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jYh´KèhjZubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj>ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jYh´KèhjÉubj+)�”}”(hŒ†``unsigned long allowed_cpu_cap`` maximum allowed CPU capacity for the **pd**, which might reflect reduced frequency (due to thermal) ”h]”(j1)�”}”(hŒ!``unsigned long allowed_cpu_cap``”h]”jý)�”}”(hj}h]”hŒunsigned long allowed_cpu_cap”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj{ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´KêhjwubjK)�”}”(hhh]”hï)�”}”(hŒcmaximum allowed CPU capacity for the **pd**, which might reflect reduced frequency (due to thermal)”h]”(hŒ%maximum allowed CPU capacity for the ”…”�”}”(hj–h²hh³Nh´Nubjä)�”}”(hŒ**pd**”h]”hŒpd”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj–ubhŒ8, which might reflect reduced frequency (due to thermal)”…”�”}”(hj–h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kéhj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjwubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j’h´KêhjÉubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hj­ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjËh]”hŒ Description”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjÉubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kìhj­ubhï)�”}”(hŒÛThis function must be used only for CPU devices. There is no validation, i.e. if the EM is a CPU type and has cpumask allocated. It is called from the scheduler code quite frequently and that is why there is not checks.”h]”hŒÛThis function must be used only for CPU devices. There is no validation, i.e. if the EM is a CPU type and has cpumask allocated. It is called from the scheduler code quite frequently and that is why there is not checks.”…”�”}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Këhj­ubhï)�”}”(hŒ **Return**”h]”jä)�”}”(hjòh]”hŒReturn”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjðubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kïhj­ubhï)�”}”(hŒ€the sum of the energy consumed by the CPUs of the domain assuming a capacity state satisfying the max utilization of the domain.”h]”hŒ€the sum of the energy consumed by the CPUs of the domain assuming a capacity state satisfying the max utilization of the domain.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´Kðhj­ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ!em_pd_nr_perf_states (C function)”Œc.em_pd_nr_perf_states”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ4int em_pd_nr_perf_states (struct em_perf_domain *pd)”h]”jW)�”}”(hŒ3int em_pd_nr_perf_states(struct em_perf_domain *pd)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj3h²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´M?ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj3h²hh³jEh´M?ubj€)�”}”(hŒem_pd_nr_perf_states”h]”j†)�”}”(hŒem_pd_nr_perf_states”h]”hŒem_pd_nr_perf_states”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjTubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj3h²hh³jEh´M?ubjû )�”}”(hŒ(struct em_perf_domain *pd)”h]”j )�”}”(hŒstruct em_perf_domain *pd”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjpubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjpubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj�ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j”Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: jZsbŒc.em_pd_nr_perf_states”†”asbuh1hhjpubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjpubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjpubj†)�”}”(hŒpd”h]”hŒpd”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjpubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjlubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj3h²hh³jEh´M?ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj/h²hh³jEh´M?ubah}”(h]”j*ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jEh´M?hj,h²hubj²)�”}”(hhh]”hï)�”}”(hŒ6Get the number of performance states of a perf. domain”h]”hŒ6Get the number of performance states of a perf. domain”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´M?hjôh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj,h²hh³jEh´M?ubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjjÕjjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hŒ¬**Parameters** ``struct em_perf_domain *pd`` performance domain for which this must be done **Return** the number of performance states in the performance domain table”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjh]”hŒ Parameters”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MChjubj&)�”}”(hhh]”j+)�”}”(hŒM``struct em_perf_domain *pd`` performance domain for which this must be done ”h]”(j1)�”}”(hŒ``struct em_perf_domain *pd``”h]”jý)�”}”(hj8h]”hŒstruct em_perf_domain *pd”…”�”}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MAhj2ubjK)�”}”(hhh]”hï)�”}”(hŒ.performance domain for which this must be done”h]”hŒ.performance domain for which this must be done”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jMh´MAhjNubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj2ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jMh´MAhj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hjubhï)�”}”(hŒ **Return**”h]”jä)�”}”(hjsh]”hŒReturn”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjqubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MChjubhï)�”}”(hŒ@the number of performance states in the performance domain table”h]”hŒ@the number of performance states in the performance domain table”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MChjubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ"em_perf_state_from_pd (C function)”Œc.em_perf_state_from_pd”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒHstruct em_perf_state * em_perf_state_from_pd (struct em_perf_domain *pd)”h]”jW)�”}”(hŒFstruct em_perf_state *em_perf_state_from_pd(struct em_perf_domain *pd)”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj´h²hh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MKubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj´h²hh³jÅh´MKubh)�”}”(hhh]”j†)�”}”(hŒ em_perf_state”h]”hŒ em_perf_state”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÔubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jÙŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: Œem_perf_state_from_pd”sbŒc.em_perf_state_from_pd”†”asbuh1hhj´h²hh³jÅh´MKubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj´h²hh³jÅh´MKubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj´h²hh³jÅh´MKubj€)�”}”(hŒem_perf_state_from_pd”h]”j†)�”}”(hjõh]”hŒem_perf_state_from_pd”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj´h²hh³jÅh´MKubjû )�”}”(hŒ(struct em_perf_domain *pd)”h]”j )�”}”(hŒstruct em_perf_domain *pd”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj2h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj.ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj.ubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjMubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jRŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jóŒc.em_perf_state_from_pd”†”asbuh1hhj.ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj.ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj.ubj†)�”}”(hŒpd”h]”hŒpd”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj.ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj*ubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj´h²hh³jÅh´MKubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj°h²hh³jÅh´MKubah}”(h]”j«ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jÅh´MKhj­h²hubj²)�”}”(hhh]”hï)�”}”(hŒ0Get the performance states table of perf. domain”h]”hŒ0Get the performance states table of perf. domain”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MKhj°h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj­h²hh³jÅh´MKubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjËjÕjËjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX]**Parameters** ``struct em_perf_domain *pd`` performance domain for which this must be done **Description** To use this function the rcu_read_lock() should be hold. After the usage of the performance states table is finished, the rcu_read_unlock() should be called. **Return** the pointer to performance states table of the performance domain”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjÕh]”hŒ Parameters”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MOhjÏubj&)�”}”(hhh]”j+)�”}”(hŒM``struct em_perf_domain *pd`` performance domain for which this must be done ”h]”(j1)�”}”(hŒ``struct em_perf_domain *pd``”h]”jý)�”}”(hjôh]”hŒstruct em_perf_domain *pd”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjòubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MMhjîubjK)�”}”(hhh]”hï)�”}”(hŒ.performance domain for which this must be done”h]”hŒ.performance domain for which this must be done”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j h´MMhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjîubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j h´MMhjëubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hjÏubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hj/h]”hŒ Description”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj-ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MOhjÏubhï)�”}”(hŒ�To use this function the rcu_read_lock() should be hold. After the usage of the performance states table is finished, the rcu_read_unlock() should be called.”h]”hŒ�To use this function the rcu_read_lock() should be hold. After the usage of the performance states table is finished, the rcu_read_unlock() should be called.”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MNhjÏubhï)�”}”(hŒ **Return**”h]”jä)�”}”(hjVh]”hŒReturn”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjTubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MRhjÏubhï)�”}”(hŒAthe pointer to performance states table of the performance domain”h]”hŒAthe pointer to performance states table of the performance domain”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ`/var/lib/git/docbuild/linux/Documentation/power/energy-model:280: ./include/linux/energy_model.h”h´MShjÏubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ&em_dev_update_perf_domain (C function)”Œc.em_dev_update_perf_domain”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒSint em_dev_update_perf_domain (struct device *dev, struct em_perf_table *new_table)”h]”jW)�”}”(hŒRint em_dev_update_perf_domain(struct device *dev, struct em_perf_table *new_table)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj—h²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M;ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj—h²hh³j©h´M;ubj€)�”}”(hŒem_dev_update_perf_domain”h]”j†)�”}”(hŒem_dev_update_perf_domain”h]”hŒem_dev_update_perf_domain”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj¸ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj—h²hh³j©h´M;ubjû )�”}”(hŒ5(struct device *dev, struct em_perf_table *new_table)”h]”(j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjÔubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÔubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjóubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jøŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: j¾sbŒc.em_dev_update_perf_domain”†”asbuh1hhjÔubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÔubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjÔubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÔubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÐubj )�”}”(hŒstruct em_perf_table *new_table”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjFubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjFubh)�”}”(hhh]”j†)�”}”(hŒ em_perf_table”h]”hŒ em_perf_table”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjeubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jjŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jŒc.em_dev_update_perf_domain”†”asbuh1hhjFubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjFubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj”h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjFubj†)�”}”(hŒ new_table”h]”hŒ new_table”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjFubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÐubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj—h²hh³j©h´M;ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj“h²hh³j©h´M;ubah}”(h]”jŽah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³j©h´M;hj�h²hubj²)�”}”(hhh]”hï)�”}”(hŒ$Update runtime EM table for a device”h]”hŒ$Update runtime EM table for a device”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M;hjÈh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj�h²hh³j©h´M;ubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjãjÕjãjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX¨**Parameters** ``struct device *dev`` Device for which the EM is to be updated ``struct em_perf_table *new_table`` The new EM table that is going to be used from now **Description** Update EM runtime modifiable table for the **dev** using the provided **table**. This function uses a mutex to serialize writers, so it must not be called from a non-sleeping context. Return 0 on success or an error code on failure.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjíh]”hŒ Parameters”…”�”}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjëubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M?hjçubj&)�”}”(hhh]”(j+)�”}”(hŒ@``struct device *dev`` Device for which the EM is to be updated ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hj h]”hŒstruct device *dev”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M<hjubjK)�”}”(hhh]”hï)�”}”(hŒ(Device for which the EM is to be updated”h]”hŒ(Device for which the EM is to be updated”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j!h´M<hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j!h´M<hjubj+)�”}”(hŒW``struct em_perf_table *new_table`` The new EM table that is going to be used from now ”h]”(j1)�”}”(hŒ#``struct em_perf_table *new_table``”h]”jý)�”}”(hjEh]”hŒstruct em_perf_table *new_table”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjCubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M=hj?ubjK)�”}”(hhh]”hï)�”}”(hŒ2The new EM table that is going to be used from now”h]”hŒ2The new EM table that is going to be used from now”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jZh´M=hj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj?ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jZh´M=hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjçubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hj€h]”hŒ Description”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M?hjçubhï)�”}”(hŒPUpdate EM runtime modifiable table for the **dev** using the provided **table**.”h]”(hŒ+Update EM runtime modifiable table for the ”…”�”}”(hj–h²hh³Nh´Nubjä)�”}”(hŒ**dev**”h]”hŒdev”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj–ubhŒ using the provided ”…”�”}”(hj–h²hh³Nh´Nubjä)�”}”(hŒ **table**”h]”hŒtable”…”�”}”(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³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M>hjçubhï)�”}”(hŒfThis function uses a mutex to serialize writers, so it must not be called from a non-sleeping context.”h]”hŒfThis function uses a mutex to serialize writers, so it must not be called from a non-sleeping context.”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M@hjçubhï)�”}”(hŒ0Return 0 on success or an error code on failure.”h]”hŒ0Return 0 on success or an error code on failure.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MChjçubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒem_pd_get (C function)”Œ c.em_pd_get”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ6struct em_perf_domain * em_pd_get (struct device *dev)”h]”jW)�”}”(hŒ4struct em_perf_domain *em_pd_get(struct device *dev)”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjh²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjh²hh³jh´Mubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj#ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j(Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: Œ em_pd_get”sbŒ c.em_pd_get”†”asbuh1hhjh²hh³jh´Mubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjh²hh³jh´Mubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjUh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjh²hh³jh´Mubj€)�”}”(hŒ em_pd_get”h]”j†)�”}”(hjDh]”hŒ em_pd_get”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjbubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjh²hh³jh´Mubjû )�”}”(hŒ(struct device *dev)”h]”j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj}ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj}ubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjœubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j¡Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jBŒ c.em_pd_get”†”asbuh1hhj}ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj}ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj}ubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj}ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjyubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hjh²hh³jh´Mubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjÿh²hh³jh´Mubah}”(h]”júah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jh´Mhjüh²hubj²)�”}”(hhh]”hï)�”}”(hŒ*Return the performance domain for a device”h]”hŒ*Return the performance domain for a device”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mhjÿh²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjüh²hh³jh´Mubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjjÕjjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hŒº**Parameters** ``struct device *dev`` Device to find the performance domain for **Description** Returns the performance domain to which **dev** belongs, or NULL if it doesn't exist.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj$h]”hŒ Parameters”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mhjubj&)�”}”(hhh]”j+)�”}”(hŒA``struct device *dev`` Device to find the performance domain for ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hjCh]”hŒstruct device *dev”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjAubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mhj=ubjK)�”}”(hhh]”hï)�”}”(hŒ)Device to find the performance domain for”h]”hŒ)Device to find the performance domain for”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jXh´MhjYubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj=ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jXh´Mhj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hjubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hj~h]”hŒ Description”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mhjubhï)�”}”(hŒUReturns the performance domain to which **dev** belongs, or NULL if it doesn't exist.”h]”(hŒ(Returns the performance domain to which ”…”�”}”(hj”h²hh³Nh´Nubjä)�”}”(hŒ**dev**”h]”hŒdev”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj”ubhŒ( belongs, or NULL if it doesn’t exist.”…”�”}”(hj”h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mhjubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒem_cpu_get (C function)”Œ c.em_cpu_get”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ,struct em_perf_domain * em_cpu_get (int cpu)”h]”jW)�”}”(hŒ*struct em_perf_domain *em_cpu_get(int cpu)”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjÑh²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M#ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÑh²hh³jâh´M#ubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjñubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jöŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: Œ em_cpu_get”sbŒ c.em_cpu_get”†”asbuh1hhjÑh²hh³jâh´M#ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÑh²hh³jâh´M#ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjÑh²hh³jâh´M#ubj€)�”}”(hŒ em_cpu_get”h]”j†)�”}”(hjh]”hŒ em_cpu_get”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj0ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjÑh²hh³jâh´M#ubjû )�”}”(hŒ (int cpu)”h]”j )�”}”(hŒint cpu”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjKubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjKubj†)�”}”(hŒcpu”h]”hŒcpu”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjKubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjGubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hjÑh²hh³jâh´M#ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjÍh²hh³jâh´M#ubah}”(h]”jÈah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jâh´M#hjÊh²hubj²)�”}”(hhh]”hï)�”}”(hŒ'Return the performance domain for a CPU”h]”hŒ'Return the performance domain for a CPU”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M#hj’h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjÊh²hh³jâh´M#ubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔj­jÕj­jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hŒ¬**Parameters** ``int cpu`` CPU to find the performance domain for **Description** Returns the performance domain to which **cpu** belongs, or NULL if it doesn't exist.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj·h]”hŒ Parameters”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjµubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M'hj±ubj&)�”}”(hhh]”j+)�”}”(hŒ3``int cpu`` CPU to find the performance domain for ”h]”(j1)�”}”(hŒ ``int cpu``”h]”jý)�”}”(hjÖh]”hŒint cpu”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjÔubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M$hjÐubjK)�”}”(hhh]”hï)�”}”(hŒ&CPU to find the performance domain for”h]”hŒ&CPU to find the performance domain for”…”�”}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jëh´M$hjìubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÐubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jëh´M$hjÍubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hj±ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjh]”hŒ Description”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M&hj±ubhï)�”}”(hŒUReturns the performance domain to which **cpu** belongs, or NULL if it doesn't exist.”h]”(hŒ(Returns the performance domain to which ”…”�”}”(hj'h²hh³Nh´Nubjä)�”}”(hŒ**cpu**”h]”hŒcpu”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj'ubhŒ( belongs, or NULL if it doesn’t exist.”…”�”}”(hj'h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M%hj±ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ(em_dev_register_perf_domain (C function)”Œc.em_dev_register_perf_domain”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ—int em_dev_register_perf_domain (struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”jW)�”}”(hŒ–int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjdh²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M6ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjdh²hh³jvh´M6ubj€)�”}”(hŒem_dev_register_perf_domain”h]”j†)�”}”(hŒem_dev_register_perf_domain”h]”hŒem_dev_register_perf_domain”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj…ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjdh²hh³jvh´M6ubjû )�”}”(hŒw(struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”(j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj¡ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj¡ubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÀubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jÅŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: j‹sbŒc.em_dev_register_perf_domain”†”asbuh1hhj¡ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj¡ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj¡ubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj¡ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj�ubj )�”}”(hŒunsigned int nr_states”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjubjà )�”}”(hŒint”h]”hŒint”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjAh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjubj†)�”}”(hŒ nr_states”h]”hŒ nr_states”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj�ubj )�”}”(hŒ!const struct em_data_callback *cb”h]”(j])�”}”(hŒconst”h]”hŒconst”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjdubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjdubj])�”}”(hj`h]”hŒstruct”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjdubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjdubh)�”}”(hhh]”j†)�”}”(hŒem_data_callback”h]”hŒem_data_callback”…”�”}”(hj¢h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjŸubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j¤Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jߌc.em_dev_register_perf_domain”†”asbuh1hhjdubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjdubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjdubj†)�”}”(hŒcb”h]”hŒcb”…”�”}”(hjÛh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjdubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj�ubj )�”}”(hŒconst cpumask_t *cpus”h]”(j])�”}”(hjjh]”hŒconst”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjðubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjðubh)�”}”(hhh]”j†)�”}”(hŒ cpumask_t”h]”hŒ cpumask_t”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jߌc.em_dev_register_perf_domain”†”asbuh1hhjðubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj0h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjðubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjðubj†)�”}”(hŒcpus”h]”hŒcpus”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjðubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj�ubj )�”}”(hŒbool microwatts”h]”(jà )�”}”(hŒbool”h]”hŒbool”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj`ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj`ubj†)�”}”(hŒ microwatts”h]”hŒ microwatts”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj`ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hj�ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hjdh²hh³jvh´M6ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj`h²hh³jvh´M6ubah}”(h]”j[ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jvh´M6hj]h²hubj²)�”}”(hhh]”hï)�”}”(hŒ+Register the Energy Model (EM) for a device”h]”hŒ+Register the Energy Model (EM) for a device”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M6hj§h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj]h²hh³jvh´M6ubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjÂjÕjÂjÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hXÒ**Parameters** ``struct device *dev`` Device for which the EM is to register ``unsigned int nr_states`` Number of performance states to register ``const struct em_data_callback *cb`` Callback functions providing the data of the Energy Model ``const cpumask_t *cpus`` Pointer to cpumask_t, which in case of a CPU device is obligatory. It can be taken from i.e. 'policy->cpus'. For other type of devices this should be set to NULL. ``bool microwatts`` Flag indicating that the power values are in micro-Watts or in some other scale. It must be set properly. **Description** Create Energy Model tables for a performance domain using the callbacks defined in cb. The **microwatts** is important to set with correct value. Some kernel sub-systems might rely on this flag and check if all devices in the EM are using the same scale. If multiple clients register the same performance domain, all but the first registration will be ignored. Return 0 on success”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjÌh]”hŒ Parameters”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjÊubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M:hjÆubj&)�”}”(hhh]”(j+)�”}”(hŒ>``struct device *dev`` Device for which the EM is to register ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hjëh]”hŒstruct device *dev”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjéubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M7hjåubjK)�”}”(hhh]”hï)�”}”(hŒ&Device for which the EM is to register”h]”hŒ&Device for which the EM is to register”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jh´M7hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjåubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jh´M7hjâubj+)�”}”(hŒD``unsigned int nr_states`` Number of performance states to register ”h]”(j1)�”}”(hŒ``unsigned int nr_states``”h]”jý)�”}”(hj$h]”hŒunsigned int nr_states”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M8hjubjK)�”}”(hhh]”hï)�”}”(hŒ(Number of performance states to register”h]”hŒ(Number of performance states to register”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j9h´M8hj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j9h´M8hjâubj+)�”}”(hŒ```const struct em_data_callback *cb`` Callback functions providing the data of the Energy Model ”h]”(j1)�”}”(hŒ%``const struct em_data_callback *cb``”h]”jý)�”}”(hj]h]”hŒ!const struct em_data_callback *cb”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M9hjWubjK)�”}”(hhh]”hï)�”}”(hŒ9Callback functions providing the data of the Energy Model”h]”hŒ9Callback functions providing the data of the Energy Model”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jrh´M9hjsubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjWubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jrh´M9hjâubj+)�”}”(hŒ½``const cpumask_t *cpus`` Pointer to cpumask_t, which in case of a CPU device is obligatory. It can be taken from i.e. 'policy->cpus'. For other type of devices this should be set to NULL. ”h]”(j1)�”}”(hŒ``const cpumask_t *cpus``”h]”jý)�”}”(hj–h]”hŒconst cpumask_t *cpus”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj”ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M<hj�ubjK)�”}”(hhh]”hï)�”}”(hŒ¢Pointer to cpumask_t, which in case of a CPU device is obligatory. It can be taken from i.e. 'policy->cpus'. For other type of devices this should be set to NULL.”h]”hŒ¦Pointer to cpumask_t, which in case of a CPU device is obligatory. It can be taken from i.e. ‘policy->cpus’. For other type of devices this should be set to NULL.”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M:hj¬ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j«h´M<hjâubj+)�”}”(hŒ~``bool microwatts`` Flag indicating that the power values are in micro-Watts or in some other scale. It must be set properly. ”h]”(j1)�”}”(hŒ``bool microwatts``”h]”jý)�”}”(hjÐh]”hŒbool microwatts”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjÎubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M>hjÊubjK)�”}”(hhh]”hï)�”}”(hŒiFlag indicating that the power values are in micro-Watts or in some other scale. It must be set properly.”h]”hŒiFlag indicating that the power values are in micro-Watts or in some other scale. It must be set properly.”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M=hjæubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjÊubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jåh´M>hjâubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjÆubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hj h]”hŒ Description”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M@hjÆubhï)�”}”(hŒVCreate Energy Model tables for a performance domain using the callbacks defined in cb.”h]”hŒVCreate Energy Model tables for a performance domain using the callbacks defined in cb.”…”�”}”(hj"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M?hjÆubhï)�”}”(hŒ§The **microwatts** is important to set with correct value. Some kernel sub-systems might rely on this flag and check if all devices in the EM are using the same scale.”h]”(hŒThe ”…”�”}”(hj1h²hh³Nh´Nubjä)�”}”(hŒ**microwatts**”h]”hŒ microwatts”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj1ubhŒ• is important to set with correct value. Some kernel sub-systems might rely on this flag and check if all devices in the EM are using the same scale.”…”�”}”(hj1h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MBhjÆubhï)�”}”(hŒiIf multiple clients register the same performance domain, all but the first registration will be ignored.”h]”hŒiIf multiple clients register the same performance domain, all but the first registration will be ignored.”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MFhjÆubhï)�”}”(hŒReturn 0 on success”h]”hŒReturn 0 on success”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MIhjÆubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ)em_dev_register_pd_no_update (C function)”Œc.em_dev_register_pd_no_update”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ˜int em_dev_register_pd_no_update (struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”jW)�”}”(hŒ—int em_dev_register_pd_no_update(struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjŒh²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MZubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjŒh²hh³jžh´MZubj€)�”}”(hŒem_dev_register_pd_no_update”h]”j†)�”}”(hŒem_dev_register_pd_no_update”h]”hŒem_dev_register_pd_no_update”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj­ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhjŒh²hh³jžh´MZubjû )�”}”(hŒw(struct device *dev, unsigned int nr_states, const struct em_data_callback *cb, const cpumask_t *cpus, bool microwatts)”h]”(j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjÉubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÉubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjèubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jíŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: j³sbŒc.em_dev_register_pd_no_update”†”asbuh1hhjÉubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÉubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjÉubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÉubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÅubj )�”}”(hŒunsigned int nr_states”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj;ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj;ubjà )�”}”(hŒint”h]”hŒint”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj;ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj;ubj†)�”}”(hŒ nr_states”h]”hŒ nr_states”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj;ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÅubj )�”}”(hŒ!const struct em_data_callback *cb”h]”(j])�”}”(hjjh]”hŒconst”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjŒubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjŒubj])�”}”(hj`h]”hŒstruct”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjŒubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjŒubh)�”}”(hhh]”j†)�”}”(hŒem_data_callback”h]”hŒem_data_callback”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÆubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jËŒmodname”NŒ classname”Nj> jA )�”}”jD ]”jŒc.em_dev_register_pd_no_update”†”asbuh1hhjŒubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjŒubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjŒubj†)�”}”(hŒcb”h]”hŒcb”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjŒubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÅubj )�”}”(hŒconst cpumask_t *cpus”h]”(j])�”}”(hjjh]”hŒconst”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hj ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj( h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj ubh)�”}”(hhh]”j†)�”}”(hŒ cpumask_t”h]”hŒ cpumask_t”…”�”}”(hj9 h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj6 ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j; Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jŒc.em_dev_register_pd_no_update”†”asbuh1hhj ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjW h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hje h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hj ubj†)�”}”(hŒcpus”h]”hŒcpus”…”�”}”(hjr h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÅubj )�”}”(hŒbool microwatts”h]”(jà )�”}”(hjfh]”hŒbool”…”�”}”(hj‹ h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj‡ ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj˜ h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj‡ ubj†)�”}”(hŒ microwatts”h]”hŒ microwatts”…”�”}”(hj¦ h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj‡ ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÅubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hjŒh²hh³jžh´MZubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hjˆh²hh³jžh´MZubah}”(h]”jƒah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³jžh´MZhj…h²hubj²)�”}”(hhh]”hï)�”}”(hŒ#Register a perf domain for a device”h]”hŒ#Register a perf domain for a device”…”�”}”(hjÐ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MZhjÍ h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj…h²hh³jžh´MZubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjè jÕjè jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX8**Parameters** ``struct device *dev`` Device to register the PD for ``unsigned int nr_states`` Number of performance states in the new PD ``const struct em_data_callback *cb`` Callback functions for populating the energy model ``const cpumask_t *cpus`` CPUs to include in the new PD (mandatory if **dev** is a CPU device) ``bool microwatts`` Whether or not the power values in the EM will be in uW **Description** Like em_dev_register_perf_domain(), but does not trigger a CPU capacity update after registering the PD, even if **dev** is a CPU device.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hjò h]”hŒ Parameters”…”�”}”(hjô h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjð ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M^hjì ubj&)�”}”(hhh]”(j+)�”}”(hŒ5``struct device *dev`` Device to register the PD for ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hj!h]”hŒstruct device *dev”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M[hj !ubjK)�”}”(hhh]”hï)�”}”(hŒDevice to register the PD for”h]”hŒDevice to register the PD for”…”�”}”(hj*!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j&!h´M[hj'!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj !ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j&!h´M[hj!ubj+)�”}”(hŒF``unsigned int nr_states`` Number of performance states in the new PD ”h]”(j1)�”}”(hŒ``unsigned int nr_states``”h]”jý)�”}”(hjJ!h]”hŒunsigned int nr_states”…”�”}”(hjL!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjH!ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M\hjD!ubjK)�”}”(hhh]”hï)�”}”(hŒ*Number of performance states in the new PD”h]”hŒ*Number of performance states in the new PD”…”�”}”(hjc!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j_!h´M\hj`!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjD!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j_!h´M\hj!ubj+)�”}”(hŒY``const struct em_data_callback *cb`` Callback functions for populating the energy model ”h]”(j1)�”}”(hŒ%``const struct em_data_callback *cb``”h]”jý)�”}”(hjƒ!h]”hŒ!const struct em_data_callback *cb”…”�”}”(hj…!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj�!ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M]hj}!ubjK)�”}”(hhh]”hï)�”}”(hŒ2Callback functions for populating the energy model”h]”hŒ2Callback functions for populating the energy model”…”�”}”(hjœ!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j˜!h´M]hj™!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj}!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j˜!h´M]hj!ubj+)�”}”(hŒ_``const cpumask_t *cpus`` CPUs to include in the new PD (mandatory if **dev** is a CPU device) ”h]”(j1)�”}”(hŒ``const cpumask_t *cpus``”h]”jý)�”}”(hj¼!h]”hŒconst cpumask_t *cpus”…”�”}”(hj¾!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjº!ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M^hj¶!ubjK)�”}”(hhh]”hï)�”}”(hŒDCPUs to include in the new PD (mandatory if **dev** is a CPU device)”h]”(hŒ,CPUs to include in the new PD (mandatory if ”…”�”}”(hjÕ!h²hh³Nh´Nubjä)�”}”(hŒ**dev**”h]”hŒdev”…”�”}”(hjÝ!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjÕ!ubhŒ is a CPU device)”…”�”}”(hjÕ!h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jÑ!h´M^hjÒ!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj¶!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jÑ!h´M^hj!ubj+)�”}”(hŒL``bool microwatts`` Whether or not the power values in the EM will be in uW ”h]”(j1)�”}”(hŒ``bool microwatts``”h]”jý)�”}”(hj"h]”hŒbool microwatts”…”�”}”(hj "h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M_hj"ubjK)�”}”(hhh]”hï)�”}”(hŒ7Whether or not the power values in the EM will be in uW”h]”hŒ7Whether or not the power values in the EM will be in uW”…”�”}”(hj "h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j"h´M_hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j"h´M_hj!ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hjì ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjB"h]”hŒ Description”…”�”}”(hjD"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj@"uba•Ö{h}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mahjì ubhï)�”}”(hŒ‰Like em_dev_register_perf_domain(), but does not trigger a CPU capacity update after registering the PD, even if **dev** is a CPU device.”h]”(hŒqLike em_dev_register_perf_domain(), but does not trigger a CPU capacity update after registering the PD, even if ”…”�”}”(hjX"h²hh³Nh´Nubjä)�”}”(hŒ**dev**”h]”hŒdev”…”�”}”(hj`"h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjX"ubhŒ is a CPU device.”…”�”}”(hjX"h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M`hjì ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ*em_dev_unregister_perf_domain (C function)”Œc.em_dev_unregister_perf_domain”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ7void em_dev_unregister_perf_domain (struct device *dev)”h]”jW)�”}”(hŒ6void em_dev_unregister_perf_domain(struct device *dev)”h]”(jà )�”}”(hŒvoid”h]”hŒvoid”…”�”}”(hj™"h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj•"h²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MÈubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj¨"h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj•"h²hh³j§"h´MÈubj€)�”}”(hŒem_dev_unregister_perf_domain”h]”j†)�”}”(hŒem_dev_unregister_perf_domain”h]”hŒem_dev_unregister_perf_domain”…”�”}”(hjº"h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj¶"ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj•"h²hh³j§"h´MÈubjû )�”}”(hŒ(struct device *dev)”h]”j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjÖ"h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjÒ"ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjã"h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÒ"ubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hjô"h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjñ"ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”jö"Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: j¼"sbŒc.em_dev_unregister_perf_domain”†”asbuh1hhjÒ"ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjÒ"ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj"#h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjÒ"ubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hj/#h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÒ"ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjÎ"ubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj•"h²hh³j§"h´MÈubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj‘"h²hh³j§"h´MÈubah}”(h]”jŒ"ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³j§"h´MÈhjŽ"h²hubj²)�”}”(hhh]”hï)�”}”(hŒ)Unregister Energy Model (EM) for a device”h]”hŒ)Unregister Energy Model (EM) for a device”…”�”}”(hjY#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MÈhjV#h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hjŽ"h²hh³j§"h´MÈubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔjq#jÕjq#jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hŒ¤**Parameters** ``struct device *dev`` Device for which the EM is registered **Description** Unregister the EM for the specified **dev** (but not a CPU device).”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj{#h]”hŒ Parameters”…”�”}”(hj}#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjy#ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MÌhju#ubj&)�”}”(hhh]”j+)�”}”(hŒ=``struct device *dev`` Device for which the EM is registered ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hjš#h]”hŒstruct device *dev”…”�”}”(hjœ#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj˜#ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MÉhj”#ubjK)�”}”(hhh]”hï)�”}”(hŒ%Device for which the EM is registered”h]”hŒ%Device for which the EM is registered”…”�”}”(hj³#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j¯#h´MÉhj°#ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj”#ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j¯#h´MÉhj‘#ubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hju#ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjÕ#h]”hŒ Description”…”�”}”(hj×#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjÓ#ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MËhju#ubhï)�”}”(hŒCUnregister the EM for the specified **dev** (but not a CPU device).”h]”(hŒ$Unregister the EM for the specified ”…”�”}”(hjë#h²hh³Nh´Nubjä)�”}”(hŒ**dev**”h]”hŒdev”…”�”}”(hjó#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjë#ubhŒ (but not a CPU device).”…”�”}”(hjë#h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´MÊhju#ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ'em_dev_update_chip_binning (C function)”Œc.em_dev_update_chip_binning”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒ3int em_dev_update_chip_binning (struct device *dev)”h]”jW)�”}”(hŒ2int em_dev_update_chip_binning(struct device *dev)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hj,$h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj($h²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M„ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj;$h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj($h²hh³j:$h´M„ubj€)�”}”(hŒem_dev_update_chip_binning”h]”j†)�”}”(hŒem_dev_update_chip_binning”h]”hŒem_dev_update_chip_binning”…”�”}”(hjM$h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjI$ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj($h²hh³j:$h´M„ubjû )�”}”(hŒ(struct device *dev)”h]”j )�”}”(hŒstruct device *dev”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hji$h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hje$ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjv$h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhje$ubh)�”}”(hhh]”j†)�”}”(hŒdevice”h]”hŒdevice”…”�”}”(hj‡$h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj„$ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j‰$Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: jO$sbŒc.em_dev_update_chip_binning”†”asbuh1hhje$ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj§$h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhje$ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hjµ$h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hje$ubj†)�”}”(hŒdev”h]”hŒdev”…”�”}”(hjÂ$h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hje$ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hja$ubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj($h²hh³j:$h´M„ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj$$h²hh³j:$h´M„ubah}”(h]”j$ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³j:$h´M„hj!$h²hubj²)�”}”(hhh]”hï)�”}”(hŒMUpdate Energy Model after the new voltage information is present in the OPPs.”h]”hŒMUpdate Energy Model after the new voltage information is present in the OPPs.”…”�”}”(hjì$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M„hjé$h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj!$h²hh³j:$h´M„ubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔj%jÕj%jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hXP**Parameters** ``struct device *dev`` Device for which the Energy Model has to be updated. **Description** This function allows to update easily the EM with new values available in the OPP framework and DT. It can be used after the chip has been properly verified by device drivers and the voltages adjusted for the 'chip binning'.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj%h]”hŒ Parameters”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj %ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mˆhj%ubj&)�”}”(hhh]”j+)�”}”(hŒL``struct device *dev`` Device for which the Energy Model has to be updated. ”h]”(j1)�”}”(hŒ``struct device *dev``”h]”jý)�”}”(hj-%h]”hŒstruct device *dev”…”�”}”(hj/%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj+%ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M†hj'%ubjK)�”}”(hhh]”hï)�”}”(hŒ4Device for which the Energy Model has to be updated.”h]”hŒ4Device for which the Energy Model has to be updated.”…”�”}”(hjF%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jB%h´M†hjC%ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj'%ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jB%h´M†hj$%ubah}”(h]”h ]”h"]”h$]”h&]”uh1j%hj%ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjh%h]”hŒ Description”…”�”}”(hjj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjf%ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mˆhj%ubhï)�”}”(hŒàThis function allows to update easily the EM with new values available in the OPP framework and DT. It can be used after the chip has been properly verified by device drivers and the voltages adjusted for the 'chip binning'.”h]”hŒäThis function allows to update easily the EM with new values available in the OPP framework and DT. It can be used after the chip has been properly verified by device drivers and the voltages adjusted for the ‘chip binning’.”…”�”}”(hj~%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M‡hj%ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubj;)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(jGŒ)em_update_performance_limits (C function)”Œc.em_update_performance_limits”hNt”auh1j:hj)h²hh³Nh´NubjL)�”}”(hhh]”(jQ)�”}”(hŒtint em_update_performance_limits (struct em_perf_domain *pd, unsigned long freq_min_khz, unsigned long freq_max_khz)”h]”jW)�”}”(hŒsint em_update_performance_limits(struct em_perf_domain *pd, unsigned long freq_min_khz, unsigned long freq_max_khz)”h]”(jà )�”}”(hŒint”h]”hŒint”…”�”}”(hj­%h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj©%h²hh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mµubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj¼%h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj©%h²hh³j»%h´Mµubj€)�”}”(hŒem_update_performance_limits”h]”j†)�”}”(hŒem_update_performance_limits”h]”hŒem_update_performance_limits”…”�”}”(hjÎ%h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjÊ%ubah}”(h]”h ]”(j˜j™eh"]”h$]”h&]”hÅhÆuh1jhj©%h²hh³j»%h´Mµubjû )�”}”(hŒS(struct em_perf_domain *pd, unsigned long freq_min_khz, unsigned long freq_max_khz)”h]”(j )�”}”(hŒstruct em_perf_domain *pd”h]”(j])�”}”(hj`h]”hŒstruct”…”�”}”(hjê%h²hh³Nh´Nubah}”(h]”h ]”jiah"]”h$]”h&]”uh1j\hjæ%ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj÷%h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjæ%ubh)�”}”(hhh]”j†)�”}”(hŒem_perf_domain”h]”hŒem_perf_domain”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj&ubah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”jÎŒreftype”j: Œ reftarget”j &Œmodname”NŒ classname”Nj> jA )�”}”jD ]”jG )�”}”j: jÐ%sbŒc.em_update_performance_limits”†”asbuh1hhjæ%ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj(&h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjæ%ubj[ )�”}”(hj^ h]”hŒ*”…”�”}”(hj6&h²hh³Nh´Nubah}”(h]”h ]”jg ah"]”h$]”h&]”uh1jZ hjæ%ubj†)�”}”(hŒpd”h]”hŒpd”…”�”}”(hjC&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjæ%ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjâ%ubj )�”}”(hŒunsigned long freq_min_khz”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj\&h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjX&ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjj&h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjX&ubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hjx&h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hjX&ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj†&h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhjX&ubj†)�”}”(hŒ freq_min_khz”h]”hŒ freq_min_khz”…”�”}”(hj”&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hjX&ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjâ%ubj )�”}”(hŒunsigned long freq_max_khz”h]”(jà )�”}”(hŒunsigned”h]”hŒunsigned”…”�”}”(hj­&h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj©&ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj»&h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj©&ubjà )�”}”(hŒlong”h]”hŒlong”…”�”}”(hjÉ&h²hh³Nh´Nubah}”(h]”h ]”jÏ ah"]”h$]”h&]”uh1j hj©&ubjo)�”}”(hŒ ”h]”hŒ ”…”�”}”(hj×&h²hh³Nh´Nubah}”(h]”h ]”j{ah"]”h$]”h&]”uh1jnhj©&ubj†)�”}”(hŒ freq_max_khz”h]”hŒ freq_max_khz”…”�”}”(hjå&h²hh³Nh´Nubah}”(h]”h ]”j‘ah"]”h$]”h&]”uh1j…hj©&ubeh}”(h]”h ]”h"]”h$]”h&]”Œnoemph”ˆhÅhÆuh1j hjâ%ubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jú hj©%h²hh³j»%h´Mµubeh}”(h]”h ]”h"]”h$]”h&]”hÅhÆj£ˆuh1jVj¤j¥hj¥%h²hh³j»%h´Mµubah}”(h]”j %ah ]”(j©jªeh"]”h$]”h&]”j®ˆj¯)j°huh1jPh³j»%h´Mµhj¢%h²hubj²)�”}”(hhh]”hï)�”}”(hŒ8Update Energy Model with performance limits information.”h]”hŒ8Update Energy Model with performance limits information.”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mµhj 'h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j±hj¢%h²hh³j»%h´Mµubeh}”(h]”h ]”(jÎŒfunction”eh"]”h$]”h&]”jÓjÎjÔj''jÕj''jÖ‰j׉j؉uh1jKh²hhj)h³Nh´NubjÚ)�”}”(hX**Parameters** ``struct em_perf_domain *pd`` Performance Domain with EM that has to be updated. ``unsigned long freq_min_khz`` New minimum allowed frequency for this device. ``unsigned long freq_max_khz`` New maximum allowed frequency for this device. **Description** This function allows to update the EM with information about available performance levels. It takes the minimum and maximum frequency in kHz and does internal translation to performance levels. Returns 0 on success or -EINVAL when failed.”h]”(hï)�”}”(hŒ**Parameters**”h]”jä)�”}”(hj1'h]”hŒ Parameters”…”�”}”(hj3'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhj/'ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M¹hj+'ubj&)�”}”(hhh]”(j+)�”}”(hŒQ``struct em_perf_domain *pd`` Performance Domain with EM that has to be updated. ”h]”(j1)�”}”(hŒ``struct em_perf_domain *pd``”h]”jý)�”}”(hjP'h]”hŒstruct em_perf_domain *pd”…”�”}”(hjR'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjN'ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M·hjJ'ubjK)�”}”(hhh]”hï)�”}”(hŒ2Performance Domain with EM that has to be updated.”h]”hŒ2Performance Domain with EM that has to be updated.”…”�”}”(hji'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³je'h´M·hjf'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjJ'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³je'h´M·hjG'ubj+)�”}”(hŒN``unsigned long freq_min_khz`` New minimum allowed frequency for this device. ”h]”(j1)�”}”(hŒ``unsigned long freq_min_khz``”h]”jý)�”}”(hj‰'h]”hŒunsigned long freq_min_khz”…”�”}”(hj‹'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühj‡'ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M¸hjƒ'ubjK)�”}”(hhh]”hï)�”}”(hŒ.New minimum allowed frequency for this device.”h]”hŒ.New minimum allowed frequency for this device.”…”�”}”(hj¢'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³jž'h´M¸hjŸ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhjƒ'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³jž'h´M¸hjG'ubj+)�”}”(hŒN``unsigned long freq_max_khz`` New maximum allowed frequency for this device. ”h]”(j1)�”}”(hŒ``unsigned long freq_max_khz``”h]”jý)�”}”(hjÂ'h]”hŒunsigned long freq_max_khz”…”�”}”(hjÄ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jühjÀ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1j0h³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M¹hj¼'ubjK)�”}”(hhh]”hï)�”}”(hŒ.New maximum allowed frequency for this device.”h]”hŒ.New maximum allowed frequency for this device.”…”�”}”(hjÛ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³j×'h´M¹hjØ'ubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhj¼'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j*h³j×'h´M¹hjG'ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j%hj+'ubhï)�”}”(hŒ**Description**”h]”jä)�”}”(hjý'h]”hŒ Description”…”�”}”(hjÿ'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jãhjû'ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´M»hj+'ubhï)�”}”(hŒîThis function allows to update the EM with information about available performance levels. It takes the minimum and maximum frequency in kHz and does internal translation to performance levels. Returns 0 on success or -EINVAL when failed.”h]”hŒîThis function allows to update the EM with information about available performance levels. It takes the minimum and maximum frequency in kHz and does internal translation to performance levels. Returns 0 on success or -EINVAL when failed.”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³Œ_/var/lib/git/docbuild/linux/Documentation/power/energy-model:283: ./kernel/power/energy_model.c”h´Mºhj+'ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1jÙhj)h²hh³Nh´Nubeh}”(h]”Œdescription-details-of-this-api”ah ]”h"]”Œ#2.5 description details of this api”ah$]”h&]”uh1hÈhj†h²hh³hÇh´Mubeh}”(h]”Œ core-apis”ah ]”h"]”Œ 2. core apis”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KeubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ 3. Examples”h]”hŒ 3. Examples”…”�”}”(hj<(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj9(h²hh³hÇh´M ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ'3.1 Example driver with EM registration”h]”hŒ'3.1 Example driver with EM registration”…”�”}”(hjM(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjJ(h²hh³hÇh´M#ubhï)�”}”(hXþThe CPUFreq framework supports dedicated callback for registering the EM for a given CPU(s) 'policy' object: cpufreq_driver::register_em(). That callback has to be implemented properly for a given driver, because the framework would call it at the right time during setup. This section provides a simple example of a CPUFreq driver registering a performance domain in the Energy Model framework using the (fake) 'foo' protocol. The driver implements an est_power() function to be provided to the EM framework::”h]”hXThe CPUFreq framework supports dedicated callback for registering the EM for a given CPU(s) ‘policy’ object: cpufreq_driver::register_em(). That callback has to be implemented properly for a given driver, because the framework would call it at the right time during setup. This section provides a simple example of a CPUFreq driver registering a performance domain in the Energy Model framework using the (fake) ‘foo’ protocol. The driver implements an est_power() function to be provided to the EM framework:”…”�”}”(hj[(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M%hjJ(h²hubj))�”}”(hXœ-> drivers/cpufreq/foo_cpufreq.c 01 static int est_power(struct device *dev, unsigned long *mW, 02 unsigned long *KHz) 03 { 04 long freq, power; 05 06 /* Use the 'foo' protocol to ceil the frequency */ 07 freq = foo_get_freq_ceil(dev, *KHz); 08 if (freq < 0) 09 return freq; 10 11 /* Estimate the power cost for the dev at the relevant freq. */ 12 power = foo_estimate_power(dev, freq); 13 if (power < 0) 14 return power; 15 16 /* Return the values to the EM framework */ 17 *mW = power; 18 *KHz = freq; 19 20 return 0; 21 } 22 23 static void foo_cpufreq_register_em(struct cpufreq_policy *policy) 24 { 25 struct em_data_callback em_cb = EM_DATA_CB(est_power); 26 struct device *cpu_dev; 27 int nr_opp; 28 29 cpu_dev = get_cpu_device(cpumask_first(policy->cpus)); 30 31 /* Find the number of OPPs for this policy */ 32 nr_opp = foo_get_nr_opp(policy); 33 34 /* And register the new performance domain */ 35 em_dev_register_perf_domain(cpu_dev, nr_opp, &em_cb, policy->cpus, 36 true); 37 } 38 39 static struct cpufreq_driver foo_cpufreq_driver = { 40 .register_em = foo_cpufreq_register_em, 41 };”h]”hXœ-> drivers/cpufreq/foo_cpufreq.c 01 static int est_power(struct device *dev, unsigned long *mW, 02 unsigned long *KHz) 03 { 04 long freq, power; 05 06 /* Use the 'foo' protocol to ceil the frequency */ 07 freq = foo_get_freq_ceil(dev, *KHz); 08 if (freq < 0) 09 return freq; 10 11 /* Estimate the power cost for the dev at the relevant freq. */ 12 power = foo_estimate_power(dev, freq); 13 if (power < 0) 14 return power; 15 16 /* Return the values to the EM framework */ 17 *mW = power; 18 *KHz = freq; 19 20 return 0; 21 } 22 23 static void foo_cpufreq_register_em(struct cpufreq_policy *policy) 24 { 25 struct em_data_callback em_cb = EM_DATA_CB(est_power); 26 struct device *cpu_dev; 27 int nr_opp; 28 29 cpu_dev = get_cpu_device(cpumask_first(policy->cpus)); 30 31 /* Find the number of OPPs for this policy */ 32 nr_opp = foo_get_nr_opp(policy); 33 34 /* And register the new performance domain */ 35 em_dev_register_perf_domain(cpu_dev, nr_opp, &em_cb, policy->cpus, 36 true); 37 } 38 39 static struct cpufreq_driver foo_cpufreq_driver = { 40 .register_em = foo_cpufreq_register_em, 41 };”…”�”}”hji(sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´M.hjJ(h²hubeh}”(h]”Œ#example-driver-with-em-registration”ah ]”h"]”Œ'3.1 example driver with em registration”ah$]”h&]”uh1hÈhj9(h²hh³hÇh´M#ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ'3.2 Example driver with EM modification”h]”hŒ'3.2 Example driver with EM modification”…”�”}”(hj‚(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj(h²hh³hÇh´M\ubhï)�”}”(hŒÜThis section provides a simple example of a thermal driver modifying the EM. The driver implements a foo_thermal_em_update() function. The driver is woken up periodically to check the temperature and modify the EM data::”h]”hŒÛThis section provides a simple example of a thermal driver modifying the EM. The driver implements a foo_thermal_em_update() function. The driver is woken up periodically to check the temperature and modify the EM data:”…”�”}”(hj�(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´M^hj(h²hubj))�”}”(hX‰-> drivers/soc/example/example_em_mod.c 01 static void foo_get_new_em(struct foo_context *ctx) 02 { 03 struct em_perf_table __rcu *em_table; 04 struct em_perf_state *table, *new_table; 05 struct device *dev = ctx->dev; 06 struct em_perf_domain *pd; 07 unsigned long freq; 08 int i, ret; 09 10 pd = em_pd_get(dev); 11 if (!pd) 12 return; 13 14 em_table = em_table_alloc(pd); 15 if (!em_table) 16 return; 17 18 new_table = em_table->state; 19 20 rcu_read_lock(); 21 table = em_perf_state_from_pd(pd); 22 for (i = 0; i < pd->nr_perf_states; i++) { 23 freq = table[i].frequency; 24 foo_get_power_perf_values(dev, freq, &new_table[i]); 25 } 26 rcu_read_unlock(); 27 28 /* Calculate 'cost' values for EAS */ 29 ret = em_dev_compute_costs(dev, new_table, pd->nr_perf_states); 30 if (ret) { 31 dev_warn(dev, "EM: compute costs failed %d\n", ret); 32 em_table_free(em_table); 33 return; 34 } 35 36 ret = em_dev_update_perf_domain(dev, em_table); 37 if (ret) { 38 dev_warn(dev, "EM: update failed %d\n", ret); 39 em_table_free(em_table); 40 return; 41 } 42 43 /* 44 * Since it's one-time-update drop the usage counter. 45 * The EM framework will later free the table when needed. 46 */ 47 em_table_free(em_table); 48 } 49 50 /* 51 * Function called periodically to check the temperature and 52 * update the EM if needed 53 */ 54 static void foo_thermal_em_update(struct foo_context *ctx) 55 { 56 struct device *dev = ctx->dev; 57 int cpu; 58 59 ctx->temperature = foo_get_temp(dev, ctx); 60 if (ctx->temperature < FOO_EM_UPDATE_TEMP_THRESHOLD) 61 return; 62 63 foo_get_new_em(ctx); 64 }”h]”hX‰-> drivers/soc/example/example_em_mod.c 01 static void foo_get_new_em(struct foo_context *ctx) 02 { 03 struct em_perf_table __rcu *em_table; 04 struct em_perf_state *table, *new_table; 05 struct device *dev = ctx->dev; 06 struct em_perf_domain *pd; 07 unsigned long freq; 08 int i, ret; 09 10 pd = em_pd_get(dev); 11 if (!pd) 12 return; 13 14 em_table = em_table_alloc(pd); 15 if (!em_table) 16 return; 17 18 new_table = em_table->state; 19 20 rcu_read_lock(); 21 table = em_perf_state_from_pd(pd); 22 for (i = 0; i < pd->nr_perf_states; i++) { 23 freq = table[i].frequency; 24 foo_get_power_perf_values(dev, freq, &new_table[i]); 25 } 26 rcu_read_unlock(); 27 28 /* Calculate 'cost' values for EAS */ 29 ret = em_dev_compute_costs(dev, new_table, pd->nr_perf_states); 30 if (ret) { 31 dev_warn(dev, "EM: compute costs failed %d\n", ret); 32 em_table_free(em_table); 33 return; 34 } 35 36 ret = em_dev_update_perf_domain(dev, em_table); 37 if (ret) { 38 dev_warn(dev, "EM: update failed %d\n", ret); 39 em_table_free(em_table); 40 return; 41 } 42 43 /* 44 * Since it's one-time-update drop the usage counter. 45 * The EM framework will later free the table when needed. 46 */ 47 em_table_free(em_table); 48 } 49 50 /* 51 * Function called periodically to check the temperature and 52 * update the EM if needed 53 */ 54 static void foo_thermal_em_update(struct foo_context *ctx) 55 { 56 struct device *dev = ctx->dev; 57 int cpu; 58 59 ctx->temperature = foo_get_temp(dev, ctx); 60 if (ctx->temperature < FOO_EM_UPDATE_TEMP_THRESHOLD) 61 return; 62 63 foo_get_new_em(ctx); 64 }”…”�”}”hjž(sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1j(h³hÇh´Mbhj(h²hubeh}”(h]”Œ#example-driver-with-em-modification”ah ]”h"]”Œ'3.2 example driver with em modification”ah$]”h&]”uh1hÈhj9(h²hh³hÇh´M\ubeh}”(h]”Œexamples”ah ]”h"]”Œ 3. examples”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M ubeh}”(h]”Œenergy-model-of-devices”ah ]”h"]”Œenergy model of devices”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”Œentry”Œ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”jç(Œ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Á(j¾(jƒj€j6(j3(j»j¸j¶j³jjjDjAjkjhj®j«jjj&j#j.(j+(j¹(j¶(j|(jy(j±(j®(uŒ nametypes”}”(jÁ(‰jƒ‰j6(‰j»‰j¶‰j‰jD‰jk‰j®‰j‰j&‰j.(‰j¹(‰j|(‰j±(‰uh}”(j¾(hÊj€hÝj3(j†j¸j—j³j¾jjÏjAj jhjGj«jnjj¹j#jj+(j)jIjRjijnjäjéjµ jº jµ jº j*j/j«j°jŽj“jújÿjÈjÍj[j`jƒjˆjŒ"j‘"j$j$$j %j¥%j¶(j9(jy(jJ(j®(j(uŒ 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.