Current File : //usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyc |
�
��\c @ sd d d l Z d d l Z d d l m Z d d l m Z e j j � Z d e j
f d � � YZ d S( i����Ni ( t base( t commandst cpulist_presentc B s e Z d Z d � Z d � Z RS( sY
Checks whether CPUs from list are present, returns list containing
only present CPUs
c C s t t | � j d d � d S( NR i ( t superR t __init__( t self( ( sU /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
s c C s� t t | � j | � s d S| j j d j | � � } | j j | j j d � � } d j d � t t t
| � j t
| � � � � D� � S( Ns ,,s /sys/devices/system/cpu/presentt ,c s s | ] } t | � Vq d S( N( t str( t .0t v( ( sU /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pys <genexpr> s ( R R t executet Nonet _cmdt cpulist_unpackt joint read_filet sortedt listt sett intersection( R t argst cpust present( ( sU /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
s
( t __name__t
__module__t __doc__R R
( ( ( sU /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR s ( t ost
tuned.logst tunedt R t tuned.utils.commandsR t logst gett logt FunctionR ( ( ( sU /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyt <module> s