legacy: Move TICKS_UNLIMITED -> K_FOREVER

Change-Id: Ic1e73959a3444bc6e015e341899c75b1ef850189
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-01-17 06:30:03 -05:00 committed by Anas Nashif
commit 6b65dcefd2
4 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ static void ipm_console_thread(void *arg1, void *arg2, void *arg3)
pos = 0;
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,
(uint8_t *)&config_info->line_buf[pos],

View file

@ -230,7 +230,7 @@ void _timer_idle_enter(int32_t ticks)
{
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
* in the 32-bit counter register. To work around this, program

View file

@ -355,7 +355,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */
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
* in the 32-bit counter register. To work around this, program

View file

@ -68,7 +68,7 @@ static void zperf_tcp_rx_fiber(int port)
}
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;
uint32_t time = k_cycle_get_32();