/* Timer callback for threads suspended with a timeout.  */
static void on_suspend_timer_expired(void *arg_p)
/* Timer callback for threads suspended with a timeout.  */
static void on_suspend_timer_expired(void *arg_p)
{
    struct thrd_t *thrd_p;
    thrd_p = arg_p;
    thrd_p->timer_p = NULL;
    thrd_p->err = -ETIMEDOUT;
    thrd_p->state = THRD_STATE_READY;
    scheduler_ready_push(thrd_p);
    thrd_port_on_suspend_timer_expired(thrd_p);
}