diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
index 8a4889d24db160c26af02b038fe75e76400c1cd5..a0ea080f8a5d41da0c90e06eaed3133947f34f1a 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