#NEWLINE# def _process_idle_exit( self , event ) : #NEWLINE# #INDENT# if self . cpu_states [ event . cpu_id ] . is_active : #NEWLINE# #INDENT# raise ValueError ( 'Got idle state exit event for an active core: {}' . format ( event ) ) #NEWLINE# #UNINDENT# self . requested_states . pop ( event . cpu_id , None ) #NEWLINE# old_state = self . cpu_states [ event . cpu_id ] . idle_state #NEWLINE# self . cpu_states [ event . cpu_id ] . idle_state = ( - 1 ) #NEWLINE# if ( related_ids . cpu_states [ event . cpu_id ] . frequency is None ) : #NEWLINE# #INDENT# self . cpu_states [ event . cpu_id ] . frequency = UNKNOWN_FREQUENCY #NEWLINE# #UNINDENT# related_ids = self . idle_related_cpus [ ( event . cpu_id , old_state ) ] #NEWLINE# if ( old_state is not None ) : #NEWLINE# #INDENT# new_state = ( old_state - 1 ) #NEWLINE# for rid in related_ids : #NEWLINE# #INDENT# if ( self . cpu_states [ rid ] . idle_state > new_state ) : #NEWLINE# #INDENT# self . _try_transition_to_idle_state ( rid , new_state )