From: santosh.shilimkar@ti.com (Santosh Shilimkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 22/22] ARM: SMP: remove smp_mpidr.h
Date: Mon, 6 Dec 2010 15:02:09 +0530 [thread overview]
Message-ID: <7ba9887da1b3a9057e833c1fae3458e7@mail.gmail.com> (raw)
In-Reply-To: <E1POcD1-0007sP-Rs@rmk-PC.arm.linux.org.uk>
Russell,
> -----Original Message-----
> From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-
> kernel-bounces at lists.infradead.org] On Behalf Of Russell King - ARM
Linux
> Sent: Saturday, December 04, 2010 1:56 AM
> To: linux-arm-kernel at lists.infradead.org; Catalin Marinas
> Subject: [PATCH 22/22] ARM: SMP: remove smp_mpidr.h
>
> With "ARM: CPU hotplug: remove bug checks in platform_cpu_die()", we
> now do not use hard_smp_processor_id(), we no longer need to read the
> hardware processor ID. Remove the include providing this function.
>
hard_smp_processor_id() is also useful when wakeup from low power
modes and wants to run specific restore code on specific
CPUs. Ofcourse platform have it's own custome macro, but having
ARM generic is better.
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> ---
> arch/arm/include/asm/smp_mpidr.h | 17 -----------------
> arch/arm/mach-realview/include/mach/smp.h | 1 -
> arch/arm/mach-s5pv310/include/mach/smp.h | 1 -
> arch/arm/mach-tegra/include/mach/smp.h | 1 -
> arch/arm/mach-ux500/include/mach/smp.h | 1 -
> arch/arm/mach-vexpress/include/mach/smp.h | 1 -
> arch/arm/plat-omap/include/plat/smp.h | 1 -
> 7 files changed, 0 insertions(+), 23 deletions(-)
> delete mode 100644 arch/arm/include/asm/smp_mpidr.h
>
> diff --git a/arch/arm/include/asm/smp_mpidr.h
> b/arch/arm/include/asm/smp_mpidr.h
> deleted file mode 100644
> index 6a9307d..0000000
> --- a/arch/arm/include/asm/smp_mpidr.h
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -#ifndef ASMARM_SMP_MIDR_H
> -#define ASMARM_SMP_MIDR_H
> -
> -#define hard_smp_processor_id()
\
> - ({ \
> - unsigned int cpunum; \
> - __asm__("\n" \
> - "1: mrc p15, 0, %0, c0, c0, 5\n" \
> - " .pushsection \".alt.smp.init\", \"a\"\n"\
> - " .long 1b\n" \
> - " mov %0, #0\n" \
> - " .popsection" \
> - : "=r" (cpunum)); \
> - cpunum &= 0x0F; \
> - })
> -
> -#endif
> diff --git a/arch/arm/mach-realview/include/mach/smp.h b/arch/arm/mach-
> realview/include/mach/smp.h
> index d1aa704..c8221b3 100644
> --- a/arch/arm/mach-realview/include/mach/smp.h
> +++ b/arch/arm/mach-realview/include/mach/smp.h
> @@ -2,7 +2,6 @@
> #define ASMARM_ARCH_SMP_H
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> /*
> * We use IRQ1 as the IPI
> diff --git a/arch/arm/mach-s5pv310/include/mach/smp.h b/arch/arm/mach-
> s5pv310/include/mach/smp.h
> index 2897747..77e5a84 100644
> --- a/arch/arm/mach-s5pv310/include/mach/smp.h
> +++ b/arch/arm/mach-s5pv310/include/mach/smp.h
> @@ -7,7 +7,6 @@
> #define ASM_ARCH_SMP_H __FILE__
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> extern void __iomem *gic_cpu_base_addr;
>
> diff --git a/arch/arm/mach-tegra/include/mach/smp.h b/arch/arm/mach-
> tegra/include/mach/smp.h
> index d1aa704..c8221b3 100644
> --- a/arch/arm/mach-tegra/include/mach/smp.h
> +++ b/arch/arm/mach-tegra/include/mach/smp.h
> @@ -2,7 +2,6 @@
> #define ASMARM_ARCH_SMP_H
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> /*
> * We use IRQ1 as the IPI
> diff --git a/arch/arm/mach-ux500/include/mach/smp.h b/arch/arm/mach-
> ux500/include/mach/smp.h
> index bd57c50..ca2b15b 100644
> --- a/arch/arm/mach-ux500/include/mach/smp.h
> +++ b/arch/arm/mach-ux500/include/mach/smp.h
> @@ -10,7 +10,6 @@
> #define ASMARM_ARCH_SMP_H
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> /* This is required to wakeup the secondary core */
> extern void u8500_secondary_startup(void);
> diff --git a/arch/arm/mach-vexpress/include/mach/smp.h b/arch/arm/mach-
> vexpress/include/mach/smp.h
> index 721be0f..4c05e4a 100644
> --- a/arch/arm/mach-vexpress/include/mach/smp.h
> +++ b/arch/arm/mach-vexpress/include/mach/smp.h
> @@ -2,7 +2,6 @@
> #define __MACH_SMP_H
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> /*
> * We use IRQ1 as the IPI
> diff --git a/arch/arm/plat-omap/include/plat/smp.h b/arch/arm/plat-
> omap/include/plat/smp.h
> index e5541e5..7a10257 100644
> --- a/arch/arm/plat-omap/include/plat/smp.h
> +++ b/arch/arm/plat-omap/include/plat/smp.h
> @@ -18,7 +18,6 @@
> #define OMAP_ARCH_SMP_H
>
> #include <asm/hardware/gic.h>
> -#include <asm/smp_mpidr.h>
>
> /* Needed for secondary core boot */
> extern void omap_secondary_startup(void);
> --
> 1.6.2.5
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2010-12-06 9:32 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 20:07 [PATCH 0/22] More SMP cleanup Russell King - ARM Linux
2010-12-03 20:19 ` [PATCH 01/22] ARM: remove obsolete smp_cross_call_done() Russell King - ARM Linux
2010-12-03 20:19 ` [PATCH 02/22] ARM: SMP: pass an ipi number to smp_cross_call() Russell King - ARM Linux
2010-12-03 20:19 ` [PATCH 03/22] ARM: SMP: avoid using bitmasks and locks for IPIs, use hardware instead Russell King - ARM Linux
2010-12-03 20:20 ` [PATCH 04/22] ARM: SMP: remove IRQ-disabling for smp_cross_call() Russell King - ARM Linux
2010-12-03 20:20 ` [PATCH 05/22] ARM: include local timer irq stats only when local timers configured Russell King - ARM Linux
2010-12-03 20:20 ` [PATCH 06/22] ARM: SMP: provide accessors for irq_stat data Russell King - ARM Linux
2010-12-03 20:21 ` [PATCH 07/22] ARM: SMP: move ipi_count into irq_stat structure Russell King - ARM Linux
2010-12-03 20:21 ` [PATCH 08/22] ARM: fix /proc/interrupts formatting Russell King - ARM Linux
2010-12-03 20:21 ` [PATCH 09/22] ARM: SMP: provide individual IPI interrupt statistics Russell King - ARM Linux
2010-12-03 20:22 ` [PATCH 10/22] ARM: SMP: collect IPI and local timer IRQs for /proc/stat Russell King - ARM Linux
2010-12-03 20:22 ` [PATCH 11/22] ARM: SMP: use more sane register allocation for __fixup_smp_on_up Russell King - ARM Linux
2010-12-03 20:23 ` [PATCH 12/22] ARM: SMP: ensure smp_send_stop() waits for CPUs to stop Russell King - ARM Linux
2010-12-03 20:23 ` [PATCH 13/22] ARM: SMP: move CPU number sanity checks to smp_init_cpus() Russell King - ARM Linux
2010-12-03 20:23 ` [PATCH 14/22] ARM: SMP: Clean up ncores sanity checks Russell King - ARM Linux
2010-12-03 20:24 ` [PATCH 15/22] ARM: SMP: get rid of get_core_count() Russell King - ARM Linux
2010-12-03 20:24 ` [PATCH 16/22] ARM: SMP: get rid of references to poke_milo and Milo Russell King - ARM Linux
2010-12-03 20:24 ` [PATCH 17/22] ARM: SMP: consolidate the common parts of smp_prepare_cpus() Russell King - ARM Linux
2010-12-03 20:25 ` [PATCH 18/22] ARM: SMP: consolidate trace_hardirqs_off() into common SMP code Russell King - ARM Linux
2010-12-03 20:25 ` [PATCH 19/22] ARM: CPU hotplug: move cpu_killed completion to core code Russell King - ARM Linux
2010-12-03 20:25 ` [PATCH 20/22] ARM: CPU hotplug: remove bug checks in platform_cpu_die() Russell King - ARM Linux
2010-12-03 20:26 ` [PATCH 21/22] ARM: CPU hotplug: ensure correct ordering of unplug Russell King - ARM Linux
2010-12-06 18:13 ` Catalin Marinas
2010-12-06 18:46 ` Russell King - ARM Linux
2010-12-06 18:54 ` Catalin Marinas
2010-12-03 20:26 ` [PATCH 22/22] ARM: SMP: remove smp_mpidr.h Russell King - ARM Linux
2010-12-06 9:32 ` Santosh Shilimkar [this message]
2010-12-06 10:32 ` Russell King - ARM Linux
2010-12-06 10:47 ` Santosh Shilimkar
2010-12-03 20:37 ` [PATCH 0/22] More SMP cleanup Russell King - ARM Linux
2010-12-03 21:54 ` Daniel Walker
2010-12-03 22:02 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ba9887da1b3a9057e833c1fae3458e7@mail.gmail.com \
--to=santosh.shilimkar@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).