mips: Remove uneeded line in cmp_smp_finish
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
@@ -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
Quoted 13 lines · Nicholas Krause
This patch removes a unneeded line from this file as stated by the fix me in this file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/mips/kernel/smp-cmp.c | 2 -- 1 file changed, 2 deletions(-)arch/mips/kernel/smp-cmp.c +0
-0
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
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.
Signed-off-by Nicholas Krause <[email protected]>--- arch/mips/kernel/smp-cmp.c | 2 -- 1 file changed, 2 deletions(-)arch/mips/kernel/smp-cmp.c +0
-0arch/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
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.
Signed-off-by Nicholas Krause <[email protected]>--- arch/mips/kernel/smp-cmp.c | 2 -- 1 file changed, 2 deletions(-)arch/mips/kernel/smp-cmp.c +0
-0arch/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
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.
Signed-off-by Nicholas Krause <[email protected]>--- arch/mips/kernel/smp-cmp.c | 2 -- 1 file changed, 2 deletions(-)arch/mips/kernel/smp-cmp.c +0
-0arch/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