• I
    perf counters: clean up state transitions · 6a930700
    Ingo Molnar 提交于
    Impact: cleanup
    
    Introduce a proper enum for the 3 states of a counter:
    
    	PERF_COUNTER_STATE_OFF		= -1
    	PERF_COUNTER_STATE_INACTIVE	=  0
    	PERF_COUNTER_STATE_ACTIVE	=  1
    
    and rename counter->active to counter->state and propagate the
    changes everywhere.
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    6a930700
perf_counter.h 5.9 KB