From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 06/08] ARM: shmobile: Use DT for SMP on EMEV2 and KZM9D
Date: Tue, 02 Jul 2013 09:28:14 +0000 [thread overview]
Message-ID: <20130702092814.32066.30138.sendpatchset@w520> (raw)
In-Reply-To: <20130702092725.32066.54861.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
Rework the EMEV2 SMP code to rely on DT for CPU information
instead of reading out number of CPU cores from the SCU.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/mach-shmobile/smp-emev2.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
--- 0001/arch/arm/mach-shmobile/smp-emev2.c
+++ work/arch/arm/mach-shmobile/smp-emev2.c 2013-07-02 15:09:53.000000000 +0900
@@ -38,9 +38,12 @@ static int __cpuinit emev2_boot_secondar
static void __init emev2_smp_prepare_cpus(unsigned int max_cpus)
{
+ /* setup EMEV2 specific SCU base, enable */
+ shmobile_scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
scu_enable(shmobile_scu_base);
/* Tell ROM loader about our vector (in headsmp-scu.S, headsmp.S) */
+ emev2_clock_init(); /* need ioremapped SMU */
emev2_set_boot_vector(__pa(shmobile_boot_vector));
shmobile_boot_fn = virt_to_phys(shmobile_boot_scu);
shmobile_boot_arg = (unsigned long)shmobile_scu_base;
@@ -49,21 +52,7 @@ static void __init emev2_smp_prepare_cpu
scu_power_mode(shmobile_scu_base, SCU_PM_NORMAL);
}
-static void __init emev2_smp_init_cpus(void)
-{
- unsigned int ncores;
-
- /* setup EMEV2 specific SCU base */
- shmobile_scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
- emev2_clock_init(); /* need ioremapped SMU */
-
- ncores = shmobile_scu_base ? scu_get_core_count(shmobile_scu_base) : 1;
-
- shmobile_smp_init_cpus(ncores);
-}
-
struct smp_operations emev2_smp_ops __initdata = {
- .smp_init_cpus = emev2_smp_init_cpus,
.smp_prepare_cpus = emev2_smp_prepare_cpus,
.smp_boot_secondary = emev2_boot_secondary,
};
WARNING: multiple messages have this Message-ID (diff)
From: magnus.damm@gmail.com (Magnus Damm)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 06/08] ARM: shmobile: Use DT for SMP on EMEV2 and KZM9D
Date: Tue, 02 Jul 2013 18:28:14 +0900 [thread overview]
Message-ID: <20130702092814.32066.30138.sendpatchset@w520> (raw)
In-Reply-To: <20130702092725.32066.54861.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
Rework the EMEV2 SMP code to rely on DT for CPU information
instead of reading out number of CPU cores from the SCU.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/mach-shmobile/smp-emev2.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
--- 0001/arch/arm/mach-shmobile/smp-emev2.c
+++ work/arch/arm/mach-shmobile/smp-emev2.c 2013-07-02 15:09:53.000000000 +0900
@@ -38,9 +38,12 @@ static int __cpuinit emev2_boot_secondar
static void __init emev2_smp_prepare_cpus(unsigned int max_cpus)
{
+ /* setup EMEV2 specific SCU base, enable */
+ shmobile_scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
scu_enable(shmobile_scu_base);
/* Tell ROM loader about our vector (in headsmp-scu.S, headsmp.S) */
+ emev2_clock_init(); /* need ioremapped SMU */
emev2_set_boot_vector(__pa(shmobile_boot_vector));
shmobile_boot_fn = virt_to_phys(shmobile_boot_scu);
shmobile_boot_arg = (unsigned long)shmobile_scu_base;
@@ -49,21 +52,7 @@ static void __init emev2_smp_prepare_cpu
scu_power_mode(shmobile_scu_base, SCU_PM_NORMAL);
}
-static void __init emev2_smp_init_cpus(void)
-{
- unsigned int ncores;
-
- /* setup EMEV2 specific SCU base */
- shmobile_scu_base = ioremap(EMEV2_SCU_BASE, PAGE_SIZE);
- emev2_clock_init(); /* need ioremapped SMU */
-
- ncores = shmobile_scu_base ? scu_get_core_count(shmobile_scu_base) : 1;
-
- shmobile_smp_init_cpus(ncores);
-}
-
struct smp_operations emev2_smp_ops __initdata = {
- .smp_init_cpus = emev2_smp_init_cpus,
.smp_prepare_cpus = emev2_smp_prepare_cpus,
.smp_boot_secondary = emev2_boot_secondary,
};
next prev parent reply other threads:[~2013-07-02 9:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 9:27 [PATCH 00/08] ARM: shmobile: EMEV2 and KZM9D update Magnus Damm
2013-07-02 9:27 ` Magnus Damm
2013-07-02 9:27 ` [PATCH 01/08] ARM: shmobile: Remove unused EMEV2/KZM9D early console Magnus Damm
2013-07-02 9:27 ` Magnus Damm
2013-07-02 9:27 ` [PATCH 02/08] ARM: shmobile: Update KZM9D dts command line Magnus Damm
2013-07-02 9:27 ` Magnus Damm
2013-07-02 9:27 ` [PATCH 03/08] ARM: shmobile: Make EMEV2 platform devices more compact Magnus Damm
2013-07-02 9:27 ` Magnus Damm
2013-07-02 9:27 ` [PATCH 04/08] ARM: shmobile: Add GIO to EMEV2 dtsi Magnus Damm
2013-07-02 9:27 ` Magnus Damm
2013-07-02 9:28 ` [PATCH 05/08] ARM: shmobile: Use DT for GIC on EMEV2 and KZM9D Magnus Damm
2013-07-02 9:28 ` Magnus Damm
2013-07-02 9:28 ` Magnus Damm [this message]
2013-07-02 9:28 ` [PATCH 06/08] ARM: shmobile: Use DT for SMP " Magnus Damm
2013-07-02 9:28 ` [PATCH 07/08] ARM: shmobile: EMEV2 map_io update Magnus Damm
2013-07-02 9:28 ` Magnus Damm
2013-07-02 9:28 ` [PATCH 08/08] ARM: shmobile: Disconnect EMEV2 SMP code from clocks Magnus Damm
2013-07-02 9:28 ` Magnus Damm
2013-07-03 12:29 ` [PATCH 00/08] ARM: shmobile: EMEV2 and KZM9D update Arnd Bergmann
2013-07-03 12:29 ` Arnd Bergmann
2013-07-04 1:23 ` Simon Horman
2013-07-04 1:23 ` Simon Horman
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=20130702092814.32066.30138.sendpatchset@w520 \
--to=magnus.damm@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.