Re: [RFC][PATCH 5/8] perf: Reduce perf_disable() usage

From: Cyrill Gorcunov
Date: Wed Jun 16 2010 - 12:53:10 EST


On Wed, Jun 16, 2010 at 06:00:32PM +0200, Peter Zijlstra wrote:
> Since the current perf_disable() usage is only an optimization, remove
> it for now. This eases the removal of the weak hw_perf_enable
> interface.
>
> [ Some comments talk about NMI races, but I cannot find any such
> things. ]
>

The race was there and was fixed by commit

| commit 34adc8062227f41b04ade0ff3fbd1dbe3002669e
| Author: Ingo Molnar <mingo@xxxxxxx>
| Date: Wed May 20 20:13:28 2009 +0200

then you fixed it further in commit

| commit 3fb2b8ddcc6a7aa62af6bd2cb939edfd4c460506
| Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
| Date: Mon Mar 8 13:51:01 2010 +0100

which I understand as we don't need perf_disable here for sure.
Just for the record :)

-- Cyrill
--
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/