a Á]›iOã@s2ddlmZdZdZdZdZGdd„dejƒZdS) é)Úbase)Z sandybridgeZ ivybridgeZhaswellZ broadwellZskylakez/sys/devices/cpu/caps/pmu_nameZactiveÚdisablecs,eZdZdZ‡fdd„Z‡fdd„Z‡ZS)Úintel_recommended_pstatea‡ Checks the processor code name and return the recommended intel_pstate CPUFreq driver mode. Active is returned for the newer generation of processors not in the PROCESSOR_NAME list. Intel recommends to use the intel_pstate CPUFreq driver in active mode with HWP enabled on Ice Lake and later generations processors. This function allows dynamically setting intel_pstate based on the processor's model. For pre-IceLake processors setting pstate to active can introduce jitters which were historically seen around and tested with RHEL-7.4. From IceLake generation, intel has fixed these issues. cstt|ƒ dd¡dS)Nré)ÚsuperrÚ__init__)Úself©Ú __class__©ú^/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_intel_recommended_pstate.pyrsz!intel_recommended_pstate.__init__cs<tt|ƒ |¡sdS|j t¡ ¡}|dks4|tvr8tSt S)NÚ) rrÚexecuteZ_cmdZ read_fileÚPMU_PATHÚstripÚPROCESSOR_NAMEÚDISABLEÚACTIVE)rÚargsZcurrent_processor_namer r r rs z intel_recommended_pstate.execute)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrÚ __classcell__r r r r r s rN)r rrrrrZFunctionrr r r r Ús