legacy: Move TICKS_UNLIMITED -> K_FOREVER
Change-Id: Ic1e73959a3444bc6e015e341899c75b1ef850189 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
b52a5450b0
commit
6b65dcefd2
4 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ static void ipm_console_thread(void *arg1, void *arg2, void *arg3)
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
k_sem_take(&driver_data->sem, TICKS_UNLIMITED);
|
k_sem_take(&driver_data->sem, K_FOREVER);
|
||||||
|
|
||||||
ret = sys_ring_buf_get(&driver_data->rb, &type,
|
ret = sys_ring_buf_get(&driver_data->rb, &type,
|
||||||
(uint8_t *)&config_info->line_buf[pos],
|
(uint8_t *)&config_info->line_buf[pos],
|
||||||
|
|
|
@ -230,7 +230,7 @@ void _timer_idle_enter(int32_t ticks)
|
||||||
{
|
{
|
||||||
uint32_t status;
|
uint32_t status;
|
||||||
|
|
||||||
if ((ticks == TICKS_UNLIMITED) || (ticks > max_system_ticks)) {
|
if ((ticks == K_FOREVER) || (ticks > max_system_ticks)) {
|
||||||
/*
|
/*
|
||||||
* The number of cycles until the timer must fire next might not fit
|
* The number of cycles until the timer must fire next might not fit
|
||||||
* in the 32-bit counter register. To work around this, program
|
* in the 32-bit counter register. To work around this, program
|
||||||
|
|
|
@ -355,7 +355,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */
|
||||||
|
|
||||||
cycles = current_count_register_get();
|
cycles = current_count_register_get();
|
||||||
|
|
||||||
if ((ticks == TICKS_UNLIMITED) || (ticks > max_system_ticks)) {
|
if ((ticks == K_FOREVER) || (ticks > max_system_ticks)) {
|
||||||
/*
|
/*
|
||||||
* The number of cycles until the timer must fire next might not fit
|
* The number of cycles until the timer must fire next might not fit
|
||||||
* in the 32-bit counter register. To work around this, program
|
* in the 32-bit counter register. To work around this, program
|
||||||
|
|
|
@ -68,7 +68,7 @@ static void zperf_tcp_rx_fiber(int port)
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
struct net_buf *buf = net_receive(net_context, TICKS_UNLIMITED);
|
struct net_buf *buf = net_receive(net_context, K_FOREVER);
|
||||||
struct session *session = NULL;
|
struct session *session = NULL;
|
||||||
uint32_t time = k_cycle_get_32();
|
uint32_t time = k_cycle_get_32();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue