MINI MINI MANI MO

Path : /lib/python2.7/site-packages/tuned/profiles/functions/
File Upload :
Current File : //lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyc

ó
©=[c@sdddlZddlZddlmZddlmZejjƒZ	dej
fd„ƒYZdS(iÿÿÿÿNi(tbase(tcommandstcpulist_presentcBs eZdZd„Zd„ZRS(sY
	Checks whether CPUs from list are present, returns list containing
	only present CPUs
	cCstt|ƒjddƒdS(NRi(tsuperRt__init__(tself((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
scCstt|ƒj|ƒsdS|jjdj|ƒƒ}|jj|jjdƒƒ}djd„tt	t
|ƒjt
|ƒƒƒƒDƒƒS(Ns,,s/sys/devices/system/cpu/presentt,css|]}t|ƒVqdS(N(tstr(t.0tv((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pys	<genexpr>s(RRtexecutetNonet_cmdtcpulist_unpacktjoint	read_filetsortedtlisttsettintersection(Rtargstcpustpresent((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
s
(t__name__t
__module__t__doc__RR
(((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyRs	(tost
tuned.logsttunedtRttuned.utils.commandsRtlogstgettlogtFunctionR(((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyt<module>s


OHA YOOOO