Skip to content
Commit 6a930700 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

perf counters: clean up state transitions



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: default avatarIngo Molnar <mingo@elte.hu>
parent 1d1c7ddb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment