Forráskód Böngészése

um: Set number of CPUs

Define NR_CPUS required by the timer subsystem.

Fixes this make warning:

    scripts/kconfig/conf  --oldconfig arch/x86/um/Kconfig
    kernel/time/Kconfig:155:warning: range is invalid

Signed-off-by: Nikola Kotur <kotnick@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Nikola Kotur 8 éve
szülő
commit
8bba077066
2 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 0
      arch/um/Kconfig.common
  2. 0 3
      arch/um/os-Linux/skas/process.c

+ 5 - 0
arch/um/Kconfig.common

@@ -62,3 +62,8 @@ config HZ
 config SUBARCH
 	string
 	option env="SUBARCH"
+
+config NR_CPUS
+	int
+	range 1 1
+	default 1

+ 0 - 3
arch/um/os-Linux/skas/process.c

@@ -233,9 +233,6 @@ static int userspace_tramp(void *stack)
 	return 0;
 }
 
-/* Each element set once, and only accessed by a single processor anyway */
-#undef NR_CPUS
-#define NR_CPUS 1
 int userspace_pid[NR_CPUS];
 
 int start_userspace(unsigned long stub_stack)