提交 8bba0770 编写于 作者: N Nikola Kotur 提交者: Richard Weinberger

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: NNikola Kotur <kotnick@gmail.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 ecb6c743
...@@ -62,3 +62,8 @@ config HZ ...@@ -62,3 +62,8 @@ config HZ
config SUBARCH config SUBARCH
string string
option env="SUBARCH" option env="SUBARCH"
config NR_CPUS
int
range 1 1
default 1
...@@ -233,9 +233,6 @@ static int userspace_tramp(void *stack) ...@@ -233,9 +233,6 @@ static int userspace_tramp(void *stack)
return 0; 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 userspace_pid[NR_CPUS];
int start_userspace(unsigned long stub_stack) int start_userspace(unsigned long stub_stack)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册