Message ID | 1457067709-15720-2-git-send-email-maddy@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Fri, 2016-04-03 at 05:01:49 UTC, Madhavan Srinivasan wrote: > Current comment added in pmao_restore_workaround() for > hard_irq_disable is misleading. Comment should say to hard > "disable" interrupts instead of "enable" it. Patch to fix the typo. > > Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/58bffb5bbb238d56e8818acb46 cheers
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index d1e65ce545b3..97a1d40d8696 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c @@ -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();
Current comment added in pmao_restore_workaround() for hard_irq_disable is misleading. Comment should say to hard "disable" interrupts instead of "enable" it. Patch to fix the typo. Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> --- arch/powerpc/perf/core-book3s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)