[S390] register cpu devices for SMP=n
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Mar 2012 10:13:07 +0000 (11:13 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Mar 2012 10:13:25 +0000 (11:13 +0100)
A kernel compiled with SMP=n will not register any cpu devices.
The resulting kernel image will not boot with this error message:

    kernel BUG at fs/sysfs/group.c:65!

Use GENERIC_CPU_DEVICES=y if SMP=n to get the missing cpu device.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig

index 6d99a5fcc09030114dd8d475e6fe54184fc59814..465d5be1f0f4fd76ddef6fcac7fe301dd0d4c060 100644 (file)
@@ -64,6 +64,7 @@ config ARCH_SUPPORTS_DEBUG_PAGEALLOC
 config S390
        def_bool y
        select USE_GENERIC_SMP_HELPERS if SMP
+       select GENERIC_CPU_DEVICES if !SMP
        select HAVE_SYSCALL_WRAPPERS
        select HAVE_FUNCTION_TRACER
        select HAVE_FUNCTION_TRACE_MCOUNT_TEST