Skip to content

Commit

Permalink
um: Set number of CPUs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kotnik authored and richardweinberger committed May 3, 2017
1 parent ecb6c74 commit 8bba077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions arch/um/Kconfig.common
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ config HZ
config SUBARCH
string
option env="SUBARCH"

config NR_CPUS
int
range 1 1
default 1
3 changes: 0 additions & 3 deletions arch/um/os-Linux/skas/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8bba077

Please sign in to comment.