Commit f5066b5e authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

conf: add "domain-number" option.

This is equivalent to the -i command line option, which will be removed.
Signed-off-by: Davide Ciminaghi's avatarDavide Ciminaghi <ciminaghi@gnudd.com>
parent b6b9b7cc
...@@ -208,6 +208,13 @@ static int f_latency(int lineno, struct pp_globals *ppg, union pp_cfg_arg *arg) ...@@ -208,6 +208,13 @@ static int f_latency(int lineno, struct pp_globals *ppg, union pp_cfg_arg *arg)
return 0; return 0;
} }
static int f_domain(int lineno, struct pp_globals *ppg, union pp_cfg_arg *arg)
{
CHECK_PPI(0);
GOPTS(ppg)->domain_number = arg->i;
return 0;
}
/* These are the tables for the parser */ /* These are the tables for the parser */
static struct pp_argname arg_proto[] = { static struct pp_argname arg_proto[] = {
{"raw", PPSI_PROTO_RAW}, {"raw", PPSI_PROTO_RAW},
...@@ -240,6 +247,7 @@ static struct pp_argline pp_global_arglines[] = { ...@@ -240,6 +247,7 @@ static struct pp_argline pp_global_arglines[] = {
{ f_accuracy, "clock-accuracy", ARG_INT}, { f_accuracy, "clock-accuracy", ARG_INT},
{ f_servo_pi, "servo-pi", ARG_INT2}, { f_servo_pi, "servo-pi", ARG_INT2},
{ f_latency, "latency", ARG_INT2}, { f_latency, "latency", ARG_INT2},
{ f_domain, "domain-number", ARG_INT},
{} {}
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment