Patchwork sparc:cleanup unused code in smp_32.h

login
register
mail settings
Submitter Kefeng Wang
Date March 30, 2013, 10:28 a.m.
Message ID <5156BE4A.2030400@huawei.com>
Download mbox | patch
Permalink /patch/232515/
State Accepted
Delegated to: David Miller
Headers show

Comments

Kefeng Wang - March 30, 2013, 10:28 a.m.
After genirq and generic clockevent support at sparc32,
smp4m_irq_rotate(), prof_multiplier() and prof_counter()
are no longer used and should be removed.

Find more info from commit 6baa9b20 & 62f08283.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 arch/sparc/include/asm/smp_32.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
Sam Ravnborg - March 30, 2013, 12:22 p.m.
On Sat, Mar 30, 2013 at 06:28:26PM +0800, Kefeng Wang wrote:
> After genirq and generic clockevent support at sparc32,
> smp4m_irq_rotate(), prof_multiplier() and prof_counter()
> are no longer used and should be removed.
> 
> Find more info from commit 6baa9b20 & 62f08283.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - March 31, 2013, 11:31 p.m.
From: Kefeng Wang <wangkefeng.wang@huawei.com>
Date: Sat, 30 Mar 2013 18:28:26 +0800

> After genirq and generic clockevent support at sparc32,
> smp4m_irq_rotate(), prof_multiplier() and prof_counter()
> are no longer used and should be removed.
> 
> Find more info from commit 6baa9b20 & 62f08283.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/include/asm/smp_32.h b/arch/sparc/include/asm/smp_32.h
index 68503d3..3c8917f 100644
--- a/arch/sparc/include/asm/smp_32.h
+++ b/arch/sparc/include/asm/smp_32.h
@@ -36,7 +36,6 @@  typedef void (*smpfunc_t)(unsigned long, unsigned long, unsigned long,
 		       unsigned long, unsigned long);

 void cpu_panic(void);
-extern void smp4m_irq_rotate(int cpu);

 /*
  *	General functions that each host system must provide.
@@ -106,9 +105,6 @@  extern int hard_smp_processor_id(void);

 #define raw_smp_processor_id()		(current_thread_info()->cpu)

-#define prof_multiplier(__cpu)		cpu_data(__cpu).multiplier
-#define prof_counter(__cpu)		cpu_data(__cpu).counter
-
 void smp_setup_cpu_possible_map(void);

 #endif /* !(__ASSEMBLY__) */