nios2: Add missing NR_CPUS to Kconfig
authorTobias Klauser <tklauser@distanz.ch>
Mon, 24 Nov 2014 08:13:39 +0000 (16:13 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 8 Dec 2014 04:56:13 +0000 (12:56 +0800)
kernel/time/Kconfig expects that NR_CPUS is defined.

This fixes the following config warning:
"kernel/time/Kconfig:163:warning: range is invalid"

Follow 4cbbbb43d666 ("microblaze: Fix missing NR_CPUS in menuconfig")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/Kconfig

index 8a4889d24db160c26af02b038fe75e76400c1cd5..a0ea080f8a5d41da0c90e06eaed3133947f34f1a 100644 (file)
@@ -79,6 +79,10 @@ menu "Processor type and features"
 config MMU
        def_bool y
 
+config NR_CPUS
+       int
+       default "1"
+
 config NIOS2_ALIGNMENT_TRAP
        bool "Catch alignment trap"
        default y