David S. Miller e793d8c674 sparc64: Fix bit twiddling in sparc_pmu_enable_event().
There was a serious disconnect in the logic happening in
sparc_pmu_disable_event() vs. sparc_pmu_enable_event().

Event disable is implemented by programming a NOP event into the PCR.

However, event enable was not reversing this operation.  Instead, it
was setting the User/Priv/Hypervisor trace enable bits.

That's not sparc_pmu_enable_event()'s job, that's what
sparc_pmu_enable() and sparc_pmu_disable() do .

The intent of sparc_pmu_enable_event() is clear, since it first clear
out the event type encoding field.  So fix this by OR'ing in the event
encoding rather than the trace enable bits.

Signed-off-by: David S. Miller <davem@davemloft.net>
2012-10-16 13:05:25 -07:00
..
2008-12-04 09:17:15 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2011-06-07 16:06:34 -07:00
2008-12-04 09:17:21 -08:00
2012-05-27 23:52:45 -07:00
2012-05-11 19:27:46 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-10-05 20:39:04 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-07-26 16:46:15 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-03-28 16:36:34 +02:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-03-28 18:30:03 +01:00
2012-07-26 16:46:16 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-08-18 23:26:19 -07:00
2012-03-28 18:30:03 +01:00
2012-06-01 12:58:52 -04:00
2012-06-01 12:58:52 -04:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2012-10-09 16:23:06 +09:00
2008-12-04 09:17:21 -08:00
2012-06-24 11:03:52 -07:00
2012-03-28 18:30:03 +01:00
2008-12-04 09:17:21 -08:00