linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix misleading comment in early_setup_secondary
@ 2016-03-04  5:01 Madhavan Srinivasan
  2016-03-04  5:01 ` [PATCH 2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround Madhavan Srinivasan
  2016-06-21 12:27 ` [1/2] Fix misleading comment in early_setup_secondary Michael Ellerman
  0 siblings, 2 replies; 4+ messages in thread
From: Madhavan Srinivasan @ 2016-03-04  5:01 UTC (permalink / raw)
  To: mpe; +Cc: linuxppc-dev, linuxppc-dev, benh, Madhavan Srinivasan

Current comment in the early_setup_secondary() for
paca->soft_enabled update is misleading. Comment should say to
Mark interrupts "disabled" insteads of "enable".
Patch to fix the typo.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
---
 arch/powerpc/kernel/setup_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 5c03a6a9b054..c2b2e72042cf 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -323,7 +323,7 @@ void __init early_setup(unsigned long dt_ptr)
 #ifdef CONFIG_SMP
 void early_setup_secondary(void)
 {
-	/* Mark interrupts enabled in PACA */
+	/* Mark interrupts disabled in PACA */
 	get_paca()->soft_enabled = 0;
 
 	/* Initialize the hash table or TLB handling */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround
  2016-03-04  5:01 [PATCH 1/2] Fix misleading comment in early_setup_secondary Madhavan Srinivasan
@ 2016-03-04  5:01 ` Madhavan Srinivasan
  2016-03-11  0:30   ` [2/2] " Michael Ellerman
  2016-06-21 12:27 ` [1/2] Fix misleading comment in early_setup_secondary Michael Ellerman
  1 sibling, 1 reply; 4+ messages in thread
From: Madhavan Srinivasan @ 2016-03-04  5:01 UTC (permalink / raw)
  To: mpe; +Cc: linuxppc-dev, linuxppc-dev, benh, Madhavan Srinivasan

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(-)

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();
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround
  2016-03-04  5:01 ` [PATCH 2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround Madhavan Srinivasan
@ 2016-03-11  0:30   ` Michael Ellerman
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2016-03-11  0:30 UTC (permalink / raw)
  To: Madhavan Srinivasan; +Cc: linuxppc-dev, Madhavan Srinivasan, linuxppc-dev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [1/2] Fix misleading comment in early_setup_secondary
  2016-03-04  5:01 [PATCH 1/2] Fix misleading comment in early_setup_secondary Madhavan Srinivasan
  2016-03-04  5:01 ` [PATCH 2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround Madhavan Srinivasan
@ 2016-06-21 12:27 ` Michael Ellerman
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2016-06-21 12:27 UTC (permalink / raw)
  To: Madhavan Srinivasan; +Cc: linuxppc-dev, Madhavan Srinivasan, linuxppc-dev

On Fri, 2016-04-03 at 05:01:48 UTC, Madhavan Srinivasan wrote:
> Current comment in the early_setup_secondary() for
> paca->soft_enabled update is misleading. Comment should say to
> Mark interrupts "disabled" insteads of "enable".
> 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/103b7827d977ea34c982e6a9d2

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-21 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-04  5:01 [PATCH 1/2] Fix misleading comment in early_setup_secondary Madhavan Srinivasan
2016-03-04  5:01 ` [PATCH 2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround Madhavan Srinivasan
2016-03-11  0:30   ` [2/2] " Michael Ellerman
2016-06-21 12:27 ` [1/2] Fix misleading comment in early_setup_secondary Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).