Revert "subsys/console: Yield on char availability."

This reverts commit 4e2eaec268.

It's invalid to call k_yield from ISR. In fact, it'll trigger an
__ASSERT.

Change-Id: Icc7b81c07c2e7df63fe7d5029fac446ac6fe508b
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-04-06 14:56:00 +03:00
commit 253a7f7064

View file

@ -30,10 +30,6 @@ static int console_irq_input_hook(uint8_t c)
uart_ringbuf[i_put] = c; uart_ringbuf[i_put] = c;
i_put = i_next; i_put = i_next;
k_sem_give(&uart_sem); k_sem_give(&uart_sem);
/** Allow waiting threads to pick up a char ASAP, or there can be
* buffer overflow.
*/
k_yield();
return 1; return 1;
} }