kernel: use PREEMPT_ENABLED instead of NUM_PREEMPT_PRIORITIES > 0

Change-Id: Ia470211b0da78158bf20400e2f1f33bdc28d1f67
Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
This commit is contained in:
Benjamin Walsh 2017-01-14 18:49:11 -05:00 committed by Anas Nashif
commit 7fa3cd7e36

View file

@ -69,7 +69,7 @@ extern "C" {
#error "invalid configuration"
#endif
#if CONFIG_NUM_PREEMPT_PRIORITIES > 0
#ifdef CONFIG_PREEMPT_ENABLED
#define K_LOWEST_THREAD_PRIO CONFIG_NUM_PREEMPT_PRIORITIES
#else
#define K_LOWEST_THREAD_PRIO -1