Change in libosmocore[master]: vty: Mark cpu_sched_vty commands with attr immediate

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Nov 9 10:28:42 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/21079 )

Change subject: vty: Mark cpu_sched_vty commands with attr immediate
......................................................................

vty: Mark cpu_sched_vty commands with attr immediate

Change-Id: I85c80376c13c7dddf34dadd2a6c09caf23fd70ce
---
M src/vty/cpu_sched_vty.c
1 file changed, 6 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



diff --git a/src/vty/cpu_sched_vty.c b/src/vty/cpu_sched_vty.c
index 0b72abb..4ccc627 100644
--- a/src/vty/cpu_sched_vty.c
+++ b/src/vty/cpu_sched_vty.c
@@ -371,7 +371,7 @@
 
 }
 
-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 @@
 	"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 @@
 	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]);
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21079
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I85c80376c13c7dddf34dadd2a6c09caf23fd70ce
Gerrit-Change-Number: 21079
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201109/69e5ee18/attachment.htm>


More information about the gerrit-log mailing list