nuttx-apps/system/taskset/Kconfig
Masayuki Ishikawa 67e6e330a8 Merged in masayuki2009/nuttx.apps/taskset_command (pull request #140)
apps/system/taskset: Add taskset command for SMP systems

This command can be used to retrieve or set a process's CPU affinity.
For example,

  nsh> taskset -p 4
  pid 4's current affinity mask: 2

  nsh> taskset -p 3 4
  pid 4's current affinity mask: 3

  nsh> taskset -p 1 busyloop &

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-06-08 13:24:03 +00:00

31 lines
675 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config SYSTEM_TASKSET
bool "Taskset Command"
default n
depends on SMP && NSH_LIBRARY && SCHED_WAITPID
---help---
Enable support for the taskset command.
if SYSTEM_TASKSET
config SYSTEM_TASKSET_PROGNAME
string "Taskset program name"
default "taskset"
depends on BUILD_KERNEL
---help---
This is the name of the program that will be use when the NSH ELF
program is installed.
config SYSTEM_TASKSET_PRIORITY
int "Taskset task priority"
default 50
config SYSTEM_TASKSET_STACKSIZE
int "Taskset stack size"
default 2048
endif