diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-09 11:24:21 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-09 11:24:21 +0100 |
commit | 64c67bb088b8d7fa2cd18b6b0c9449584c2f0377 (patch) | |
tree | a8b7e3b32415269caf52365f03a1b8ce2797b30b /src/vty | |
parent | ed1fa018c3847f68d3bc54cc8ccb08815e5b6d6f (diff) |
vty: Mark cpu_sched_vty commands with attr immediate
Change-Id: I85c80376c13c7dddf34dadd2a6c09caf23fd70ce
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/cpu_sched_vty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vty/cpu_sched_vty.c b/src/vty/cpu_sched_vty.c index 0b72abb5..4ccc6274 100644 --- a/src/vty/cpu_sched_vty.c +++ b/src/vty/cpu_sched_vty.c @@ -371,7 +371,7 @@ static int my_sched_setaffinity(enum sched_vty_thread_id tid_type, pid_t pid, } -DEFUN(cfg_sched_cpu_affinity, cfg_sched_cpu_affinity_cmd, +DEFUN_ATTR(cfg_sched_cpu_affinity, cfg_sched_cpu_affinity_cmd, "cpu-affinity (self|all|<0-4294967295>|THREADNAME) CPUHEXMASK [delay]", "Set CPU affinity mask on a (group of) thread(s)\n" "Set CPU affinity mask on thread running the VTY\n" @@ -379,7 +379,8 @@ DEFUN(cfg_sched_cpu_affinity, cfg_sched_cpu_affinity_cmd, "Set CPU affinity mask on a thread with specified PID\n" "Set CPU affinity mask on a thread with specified thread name\n" "CPU affinity mask\n" - "If set, delay applying the affinity mask now and let the app handle it at a later point\n") + "If set, delay applying the affinity mask now and let the app handle it at a later point\n", + CMD_ATTR_IMMEDIATE) { const char* str_who = argv[0]; const char *str_mask = argv[1]; @@ -476,11 +477,12 @@ static int set_sched_rr(unsigned int prio) return 0; } -DEFUN(cfg_sched_policy, cfg_sched_policy_cmd, +DEFUN_ATTR(cfg_sched_policy, cfg_sched_policy_cmd, "policy rr <1-32>", "Set the scheduling policy to use for the process\n" "Use the SCHED_RR real-time scheduling algorithm\n" - "Set the SCHED_RR real-time priority\n") + "Set the SCHED_RR real-time priority\n", + CMD_ATTR_IMMEDIATE) { sched_vty_opts->sched_rr_prio = atoi(argv[0]); |