Re: [tip:perfcounters/core] perf_counter: Tidy up style details

From: Frans Pop
Date: Mon Jun 01 2009 - 14:22:25 EST


tip-bot for Ingo Molnar wrote:
> @@ -3526,7 +3529,7 @@ inherit_counter(struct perf_counter *parent_counter,
> /*
> * Make the child state follow the state of the parent counter,
> * not its hw_event.disabled bit. We hold the parent's mutex,
> - * so we won't race with perf_counter_{en,dis}able_family.
> + * so we won't race with perf_counter_{en, dis}able_family.
> */
> if (parent_counter->state >= PERF_COUNTER_STATE_INACTIVE)
> child_counter->state = PERF_COUNTER_STATE_INACTIVE;

I wouldn't call this an improvement TBH.

perf_counter_{en,dis}able_family expands to
perf_counter_enable_family + perf_counter_disable_family

while perf_counter_{en, dis}able_family expands to
perf_counter_enable_family + "perf_counter_ disable_family"

Cheers,
FJP
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/