sh: convert online CPU map twiddling to cpumask.

Previous thread: sh: switch boards to clkdev by Linux Kernel Mailing List on Wednesday, May 19, 2010 - 1:00 pm. (1 message)

Next thread: sh: switch sh7366 to clkdev by Linux Kernel Mailing List on Wednesday, May 19, 2010 - 12:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Wednesday, May 19, 2010 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/f0ccf2770f523bd4fc436886a38e499f9ec95c0e
Commit:     f0ccf2770f523bd4fc436886a38e499f9ec95c0e
Parent:     c9f4a3f53b5d61f86eae3512abdf948878ca3498
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Mon Apr 26 18:39:50 2010 +0900
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Mon Apr 26 18:39:50 2010 +0900

    sh: convert online CPU map twiddling to cpumask.
    
    This converts from cpu_set() for the online map to set_cpu_online().
    The two online map modifiers were the last remaining manual map
    manipulation bits, with this in place everything now goes through
    cpumask.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
 arch/sh/kernel/idle.c |    2 +-
 arch/sh/kernel/smp.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/idle.c b/arch/sh/kernel/idle.c
index 273f890..2040053 100644
--- a/arch/sh/kernel/idle.c
+++ b/arch/sh/kernel/idle.c
@@ -133,7 +133,7 @@ static void do_nothing(void *unused)
 void stop_this_cpu(void *unused)
 {
 	local_irq_disable();
-	cpu_clear(smp_processor_id(), cpu_online_map);
+	set_cpu_online(smp_processor_id(), false);
 
 	for (;;)
 		cpu_sleep();
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index 2f348fd..cc87830 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -102,7 +102,7 @@ asmlinkage void __cpuinit start_secondary(void)
 
 	smp_store_cpu_info(cpu);
 
-	cpu_set(cpu, cpu_online_map);
+	set_cpu_online(cpu, true);
 
 	cpu_idle();
 }
--

Previous thread: sh: switch boards to clkdev by Linux Kernel Mailing List on Wednesday, May 19, 2010 - 1:00 pm. (1 message)

Next thread: sh: switch sh7366 to clkdev by Linux Kernel Mailing List on Wednesday, May 19, 2010 - 12:59 pm. (1 message)