powerpc/perf: Fix misleading comment in pmao_restore_workaround()
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Fri, 4 Mar 2016 05:01:49 +0000 (10:31 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Mar 2016 12:00:23 +0000 (23:00 +1100)
The current comment in pmao_restore_workaround() regarding
hard_irq_disable() is wrong. It should say to hard *disable* interrupts
instead of *enable*. Fix it.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/core-book3s.c

index d1e65ce545b31f427629853a3803a6b0b4af0d9b..97a1d40d8696cac34452725081bbf6a5027f96ed 100644 (file)
@@ -651,7 +651,7 @@ static void pmao_restore_workaround(bool ebb)
 
        /*
         * We are already soft-disabled in power_pmu_enable(). We need to hard
-        * enable to actually prevent the PMU exception from firing.
+        * disable to actually prevent the PMU exception from firing.
         */
        hard_irq_disable();