From: Ingo Molnar Date: Thu, 11 Dec 2008 14:17:03 +0000 (+0100) Subject: perf counters: clean up state transitions X-Git-Tag: v2.6.31-rc1~383^2~571 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a930700c8b655a9e25e42fc4adc0b225ebbcefc;p=pandora-kernel.git 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: Ingo Molnar --- Reading git-diff-tree failed