From: Tobias Klauser <tklauser@distanz.ch>
Date: Mon, 24 Nov 2014 08:13:39 +0000 (+0800)
Subject: nios2: Add missing NR_CPUS to Kconfig
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e5c8f5f66020077486d88003f0a5371462e2585;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

nios2: Add missing NR_CPUS to Kconfig

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>
---

diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
index 8a4889d24db1..a0ea080f8a5d 100644
--- a/arch/nios2/Kconfig
+++ b/arch/nios2/Kconfig
@@ -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