Skip to contentSkip to conversation

mips: Remove uneeded line in cmp_smp_finish

PATCH In review Nicholas Krause 3 participants 5 messages Jul 19, 2014 – Jul 21, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: Remove uneeded line in cmp_smp_finish

This patch removes a unneeded line from this file as stated by the fix me in this file.

---
 arch/mips/kernel/smp-cmp.c | 2 --
 1 file changed, 2 deletions(-)
arch/mips/kernel/smp-cmp.c +0 -2
index fc8a515..61bfa20 100644
@@ -60,8 +60,6 @@ static void cmp_smp_finish(void)
 {
 	pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__);
 
-	/* CDFIXME: remove this? */
-	write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ));
 
 #ifdef CONFIG_MIPS_MT_FPAFF
 	/* If we have an FPU, enroll ourselves in the FPU-full mask */
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Nicholas Krause

This patch removes a unneeded line from this file as stated by the fix me in this file.

---
 arch/mips/kernel/smp-cmp.c | 2 --
 1 file changed, 2 deletions(-)
arch/mips/kernel/smp-cmp.c +0 -0
index fc8a515..61bfa20 100644

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 64

Quoted 5 lines
arch/mips/kernel/smp-cmp.c +0 -2
@@ -60,8 +60,6 @@ static void cmp_smp_finish(void)
 {
 	pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__);
 
-	/* CDFIXME: remove this? */
-	write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ));

That comment ends in a question mark. I wonder why...

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 65

Quoted 2 lines
arch/mips/kernel/smp-cmp.c +0 -0
 #ifdef CONFIG_MIPS_MT_FPAFF
 	/* If we have an FPU, enroll ourselves in the FPU-full mask */

Paul Bolle

#2 lore raw
Quoted 22 lines · Paul Bolle
Quoted 13 lines · Nicholas Krause

This patch removes a unneeded line from this file as stated by the fix me in this file.

---
 arch/mips/kernel/smp-cmp.c | 2 --
 1 file changed, 2 deletions(-)
arch/mips/kernel/smp-cmp.c +0 -0
index fc8a515..61bfa20 100644

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 64

Quoted 5 lines
arch/mips/kernel/smp-cmp.c +0 -2
@@ -60,8 +60,6 @@ static void cmp_smp_finish(void)
 {
      pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__);
 
-     /* CDFIXME: remove this? */
-     write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ));

That comment ends in a question mark. I wonder why...

Quoted 6 lines

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 65

Quoted 2 lines
arch/mips/kernel/smp-cmp.c +0 -0
 #ifdef CONFIG_MIPS_MT_FPAFF
      /* If we have an FPU, enroll ourselves in the FPU-full mask */

Paul Bolle

If we need it then can I remove the FIx me comment. Cheers Nick

#3 lore raw
Quoted 23 lines · Nick Krause
Quoted 22 lines · Paul Bolle
Quoted 13 lines · Nicholas Krause

This patch removes a unneeded line from this file as stated by the fix me in this file.

---
 arch/mips/kernel/smp-cmp.c | 2 --
 1 file changed, 2 deletions(-)
arch/mips/kernel/smp-cmp.c +0 -0
index fc8a515..61bfa20 100644

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 64

Quoted 5 lines
arch/mips/kernel/smp-cmp.c +0 -2
@@ -60,8 +60,6 @@ static void cmp_smp_finish(void)
 {
      pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__);
 
-     /* CDFIXME: remove this? */
-     write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ));

That comment ends in a question mark. I wonder why...

Quoted 8 lines
Quoted 6 lines

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 65

Quoted 2 lines
arch/mips/kernel/smp-cmp.c +0 -0
 #ifdef CONFIG_MIPS_MT_FPAFF
      /* If we have an FPU, enroll ourselves in the FPU-full mask */

Paul Bolle

If we need it then can I remove the FIx me comment. Cheers Nick

That depends: have you verified that we do need it?

I wouldn't feel comfortable with removing either line without someone first explaining why it isn't necessary and testing the result on a number of different systems, with varying combinations of csrc-r4k & cevt-r4k.

I absolutely agree that removing unnecessary code or outdated comments are both good things, but let's be sure they're unnecessary or outdated first. Your patch does not make me confident that you've checked either of those.

Thanks,
Paul

#4 lore raw
Quoted 40 lines · Paul Burton
Quoted 23 lines · Nick Krause
Quoted 22 lines · Paul Bolle
Quoted 13 lines · Nicholas Krause

This patch removes a unneeded line from this file as stated by the fix me in this file.

---
 arch/mips/kernel/smp-cmp.c | 2 --
 1 file changed, 2 deletions(-)
arch/mips/kernel/smp-cmp.c +0 -0
index fc8a515..61bfa20 100644

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 64

Quoted 5 lines
arch/mips/kernel/smp-cmp.c +0 -2
@@ -60,8 +60,6 @@ static void cmp_smp_finish(void)
 {
      pr_debug("SMPCMP: CPU%d: %s\n", smp_processor_id(), __func__);
 
-     /* CDFIXME: remove this? */
-     write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ));

That comment ends in a question mark. I wonder why...

Quoted 8 lines
Quoted 6 lines

arch/mips/kernel/smp-cmp.c static void cmp_smp_finish(void) · line 65

Quoted 2 lines
arch/mips/kernel/smp-cmp.c +0 -0
 #ifdef CONFIG_MIPS_MT_FPAFF
      /* If we have an FPU, enroll ourselves in the FPU-full mask */

Paul Bolle

If we need it then can I remove the FIx me comment. Cheers Nick

That depends: have you verified that we do need it?

I wouldn't feel comfortable with removing either line without someone first explaining why it isn't necessary and testing the result on a number of different systems, with varying combinations of csrc-r4k & cevt-r4k.

Quoted 7 lines

I absolutely agree that removing unnecessary code or outdated comments are both good things, but let's be sure they're unnecessary or outdated first. Your patch does not make me confident that you've checked either of those.

Thanks,
Paul

I don't have this hardware , however if we can find people to test this it would be great.
Cheers Nick