src: use osmo_timer_setup()
Use new function available in libosmocore to set up timers. Compile tested only. Change-Id: I4ca4950e49a09c63b608b13ac7561ebbd351889a
This commit is contained in:
parent
e416e2e09d
commit
b26f2fd825
|
@ -252,8 +252,7 @@ static int handle_ts1_write(struct osmo_fd *bfd)
|
|||
sign_link->sapi, msg);
|
||||
|
||||
/* set tx delay timer for next event */
|
||||
e1i_ts->sign.tx_timer.cb = timeout_ts1_write;
|
||||
e1i_ts->sign.tx_timer.data = e1i_ts;
|
||||
osmo_timer_setup(&e1i_ts->sign.tx_timer, timeout_ts1_write, e1i_ts);
|
||||
osmo_timer_schedule(&e1i_ts->sign.tx_timer, 0, 50000);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -354,8 +354,7 @@ static int __handle_ts1_write(struct osmo_fd *bfd, struct e1inp_line *line)
|
|||
}
|
||||
|
||||
/* set tx delay timer for next event */
|
||||
e1i_ts->sign.tx_timer.cb = timeout_ts1_write;
|
||||
e1i_ts->sign.tx_timer.data = e1i_ts;
|
||||
osmo_timer_setup(&e1i_ts->sign.tx_timer, timeout_ts1_write, e1i_ts);
|
||||
|
||||
/* Reducing this might break the nanoBTS 900 init. */
|
||||
osmo_timer_schedule(&e1i_ts->sign.tx_timer, 0, e1i_ts->sign.delay);
|
||||
|
|
|
@ -283,8 +283,7 @@ static int handle_ts1_write(struct osmo_fd *bfd)
|
|||
|
||||
|
||||
/* set tx delay timer for next event */
|
||||
e1i_ts->sign.tx_timer.cb = timeout_ts1_write;
|
||||
e1i_ts->sign.tx_timer.data = e1i_ts;
|
||||
osmo_timer_setup(&e1i_ts->sign.tx_timer, timeout_ts1_write, e1i_ts);
|
||||
osmo_timer_schedule(&e1i_ts->sign.tx_timer, 0, e1i_ts->sign.delay);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -160,8 +160,7 @@ static int unixsocket_write_cb(struct osmo_fd *bfd)
|
|||
}
|
||||
|
||||
/* set tx delay timer for next event */
|
||||
e1i_ts->sign.tx_timer.cb = timeout_ts1_write;
|
||||
e1i_ts->sign.tx_timer.data = e1i_ts;
|
||||
osmo_timer_setup(&e1i_ts->sign.tx_timer, timeout_ts1_write, e1i_ts);
|
||||
|
||||
osmo_timer_schedule(&e1i_ts->sign.tx_timer, 0, e1i_ts->sign.delay);
|
||||
|
||||
|
|
Loading…
Reference in New Issue