Skip to content

Commit 8bba077

Browse files
kotnikrichardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent ecb6c74 commit 8bba077

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

arch/um/Kconfig.common

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ config HZ
6262
config SUBARCH
6363
string
6464
option env="SUBARCH"
65+
66+
config NR_CPUS
67+
int
68+
range 1 1
69+
default 1

arch/um/os-Linux/skas/process.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,6 @@ static int userspace_tramp(void *stack)
233233
return 0;
234234
}
235235

236-
/* Each element set once, and only accessed by a single processor anyway */
237-
#undef NR_CPUS
238-
#define NR_CPUS 1
239236
int userspace_pid[NR_CPUS];
240237

241238
int start_userspace(unsigned long stub_stack)

0 commit comments

Comments
 (0)