[PATCH 09/14] [SH] Populate cpu_enabled_map

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alex Chiang
Date: Monday, July 14, 2008 - 7:34 pm

Populate the cpu_enabled_map correctly.

Note that this patch does not actually make any decisions based
on the contents of the map.

However, as the map is presented via sysfs in:

	/sys/devices/system/cpu/

It should be populated correctly.

Signed-off-by: Alex Chiang <achiang@hp.com>
Cc: Paul Mundt <lethal@linux-sh.org>
---

 arch/sh/kernel/smp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index 5d039d1..b91fdfa 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -60,6 +60,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
 
 #ifndef CONFIG_HOTPLUG_CPU
 	cpu_present_map = cpu_possible_map;
+	cpu_enabled_map = cpu_possible_map;
 #endif
 }
 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Mon Jul 14, 7:33 pm)
[PATCH 01/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Mon Jul 14, 7:33 pm)
[PATCH 02/14] [M32R] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:33 pm)
[PATCH 03/14] [ALPHA] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:33 pm)
[PATCH 04/14] [ARM] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 05/14] [MIPS] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 06/14] [PARISC] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 08/14] [S390] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 09/14] [SH] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 12/14] [IA64] Populate and use cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:34 pm)
[PATCH 11/14] x86: Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 7:56 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Matthew Wilcox, (Mon Jul 14, 8:15 pm)
Re: [PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Benjamin Herrenschmidt, (Mon Jul 14, 10:51 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Tue Jul 15, 3:21 am)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Tue Jul 15, 10:57 am)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Matthew Wilcox, (Tue Jul 15, 11:16 am)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Tue Jul 15, 11:48 am)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Tue Jul 15, 12:15 pm)
Re: [PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Alex Chiang, (Tue Jul 15, 6:04 pm)
Re: [PATCH 11/14] x86: Populate cpu_enabled_map, H. Peter Anvin, (Fri Jul 18, 1:00 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Fri Jul 18, 2:44 pm)
Re: [PATCH 11/14] x86: Populate cpu_enabled_map, Alex Chiang, (Fri Jul 18, 4:06 pm)