Skip to contentSkip to conversation

Fix misleading comment in early_setup_secondary

PATCH Applied Madhavan Srinivasan 2 participants 4 messages Mar 4, 2016 – Jun 21, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fix misleading comment in early_setup_secondary

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.

---
 arch/powerpc/kernel/setup_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/setup_64.c +1 -1
index 5c03a6a9b054..c2b2e72042cf 100644
@@ -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 */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 Fix misleading comment for hard_irq_disable() in pmao_restore_workaround

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.

---
 arch/powerpc/perf/core-book3s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/perf/core-book3s.c +1 -1
index d1e65ce545b3..97a1d40d8696 100644
@@ -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();
 
Signature · 1 line
1.9.1
reviewer Applied
#2 lore raw

Re: [2/2] Fix misleading comment for hard_irq_disable() in pmao_restore_workaround

Quoted 5 lines · 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.

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/58bffb5bbb238d56e8818acb46

cheers